August 3, 2020

Summary of Commands in Docker file [Docker]

Summary of commands in docker file

FROM select the base image

RUN execute command

CMD execute command, but only once in file, if more than one use last one or use as default parameter to ENTRYPOINT

LABEL adds metadata to the image

EXPOSE specifies the container to wait for requests on the specified port. Use it with -p when using docker run.

ENV assigns environment variables to images and containers

ADD copy the file into the image

COPY copy file into image different from ADD, where the source file can't be local as a remote url

ENTRYPOINT Command to run after starting the container

VOLUME assigns a mount point to the image

USER defines the user to use to run the RUN CMD ENTRYPOINT command

WORKDIR defines a working directory for RUN CMD ENTRYPOINT COPY ADD

ARG defines a variable for the BUILD episode

ONBUILD Used for running commands, but waiting for triggers to resume in case of waiting for another build

STOPSIGNAL command to stop using a system call signal

SHELL switches to a given shell

 

ref https://docs.docker.com/engine/reference/builder/

October 2024
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Who We Are

Wealth Management System Limited (WMSL) is a leading financial software company in Thailand. We provide reliable, trusted solutions to financial institutions in asset, treasury and risk management. With our innovative software systems and value added consulting services, we help our customers significantly improve their operational efficiency, reduce costs and minimize risks.

Contact Info

Chin Pong Building, 383 Ladya Road, Klongsan, Bangkok 10600 Thailand

Phone: +66(0) 2-861-4820 Ext. 5620-5622, 5628, 5629
Fax: +66 (0) 2-861-4400
Email: marketing@wealth.co.th

Weekdays: 8:00 am - 5:00 pm
Saturday & Sunday: Closed

Copyright © 2022 WMSL. All Rights Reserved