Docker Containers and Images using Go and DockerFile.
- Dockerfiles
- FROM and RUN command
- CMD command
- COPY command
- ADD command
- WORKDIR command
- ENTRYPOINT command
- ENV command
- LABEL command
- HEALTHCHECK command
- STOPSIGNAL command
- Persistent Storage
- Networking
Syntax:
vi Dockerfile
Syntax:
docker build -t <docker image name> <path of Dockerfile>
Generally, Dockerfiles are stored on current path of build and must be specified by wildcard character .
Syntax:
docker run -it --name <Docker Container Name> --rm <Docker image name> <list of executable commands separated by ;>