Professional Documents
Culture Documents
Docker Practice
Docker Practice
Executing dockerfile :
FROM
MAINTAINER
RUN [RUN apt-get install -y git ///Builts image with git app
installation ...RUNs the sripts]
EXPOSE [ EXPOSE 90 ///image with additional port will be created]
USER [USER root ///IMAGE with USER root will be created which will have
previliges to install softwares]
ADD [ADD https://get.jenkins.io/war-stable ...image will be created that
downloads from the given url]
COPY /// COPY script.sh / ...Copy the script from host machine to /root
directory in container
VOLUME [VOLUME /data ////iMAGE IS built that creates a volume when container is
created]
CMD [same as endpoint only difference is we can change the default
process of the container at the time of docker run ]
ENTRYPOINT [ to specify the default process of the container]