Run a Docker image as a container

后端 未结 11 2076
终归单人心
终归单人心 2020-12-04 04:27

After building a Docker image from a dockerfile, I see the image was built successfully, but what do I do with it? Shouldn\'t i be able to run it as a container

11条回答
  •  孤街浪徒
    2020-12-04 05:04

    $ docker images
    REPOSITORY                TAG                 IMAGE ID            CREATED            
    jamesmedice/marketplace   latest              e78c49b5f380        2 days ago          
    jamesmedice/marketplace   v1.0.0              *e78c49b5f380*        2 days ago          
    
    
    $ docker run -p 6001:8585 *e78c49b5f380*
    

提交回复
热议问题