April 2017
Beginner
404 pages
9h 30m
English
In Chapter 2, Deploying First Container, we have used a Dockerfile to create a Docker image that contains a series of commands to the Docker daemon for creating an image. The docker run command allows you to override a few docker commands set by the Dockerfile developer that are part of the Dockerfile except commands such as FROM, MAINTAINER, RUN, and Add. The commands or options that can be overridden using the docker run command are CMD, EXPOSE, ENTRYPOINT, ENV (environmental variables), HEALTHCHECK, TMPFS, VOLUME, USER, and WORKDIR.
For example, you can use the -p option to map a containers port or range of ports to similar or dissimilar ports or ranges of ports on the container's host. The image developer ...
Read now
Unlock full access