July 2018
Intermediate to advanced
504 pages
11h 34m
English
The general recommendation is that all Docker images should be built from a Dockerfile to create clean and proper image layers without unwanted temporary and log files, despite the fact that some vendors deliver their Docker images without an available Dockerfile . If there is a need to modify that existing image, you can use the standard docker commit functionality to convert an existing container to a new image.
As an example, we will try to modify our existing httpd container and make an image from it.
First, we need to get the httpd image:
$ docker pull httpdUsing default tag: latestTrying to pull repository docker.io/library/httpd ...latest: Pulling from docker.io/library/httpd...output truncated ...
Read now
Unlock full access