I can't find my Docker image after building it

后端 未结 5 1199
忘了有多久
忘了有多久 2020-12-29 21:44

I\'m new to Docker, so please allow me to describe the steps that I did. I\'m using Docker (not Docker toolbox) on OS X. I built the image from Dockerfile using the followin

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 22:32

    As already said, after the docker images

    this command will show you all the images you have locally.

    i.e "somth like that"

    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    codestandars        1.0                 a22daacf6761        8 minutes ago       622MB
    bulletinboard       1.0                 b73e8e68edc0        2 hours ago         681MB
    ubuntu              18.04               cf0f3ca922e0        4 days ago          64.2MB
    

    now you should

    docker run -it and the IMAGE ID or the TAG related to the repository you want to run.

提交回复
热议问题