Run an interactive container
|
|
Start a daemonized Hello world
|
|
-d 后台运行
Creating our own images
You can update a container created from an image and commit the results to an image.
12docker commit -m "Added json gem" -a "Kate Smith" 0b2616b0e5a8 ouruser/sinatra:v24f177bd27a9ff0f6dc2a830403925b5360bfe0b93d476f7fc3231110e7f71b1cYou can use a Dockerfile to specify instructions to create an image.
1234mkdir sinatracd sinatratouch Dockerfiledocker build -t ouruser/sinatra:v2 .
-t flag to identify our new image as belonging to the user ouruser
Setting tags on an image
|
|
Remove an image from the host
|
|