May 2017
Intermediate to advanced
270 pages
6h 18m
English
Docker images are ready-to-use, pre-configured systems. The docker run command can be used to access and install the docker images available on the DockerHub (https://hub.docker.com/), a web service where package maintainers upload ready-to-use images to test and deploy various applications.
One way to create a docker image is by using the docker commit command on an existing container. The docker commit command takes a container reference and the output image names as arguments:
$ docker commit <container_id> <new_image_name>
Using this method is useful to save snapshots of a certain container but, if the image is removed from the system, the steps to recreate the image are lost as well.
A better way to create an ...
Read now
Unlock full access