Skip to content

Why docker run command doesn't work #1143

Answered by yubozhao
hanhanwu asked this question in Q&A
Discussion options

You must be logged in to vote

@hanhanwu Thank you for point it out. We missed the :latest on the bentoml containerize command. It should be:
bentoml containerize IrisClassifier:latest -t iris-classifier:latest

In your case, the docker image is properly built. You can use docker images command to list all of the docker images on your system, and you should see it in there. The docker image tag will be your IrisClassifier version 20200928232341_4535FA.

If you see the image, you can run docker run -p 5000:5000 iris-classifier:20200928232341_4535FA --workers=1 --enable-microbatch to test it out.

Right now, the bentoml containerize behavior is if you provide a docker image tag without :, it will default to use the bento's …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hanhanwu
Comment options

@yubozhao
Comment options

@hanhanwu
Comment options

Answer selected by hanhanwu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants