/Dockerfile-Basics

Docker Containers and Images using Go and DockerFile.

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

Docker

Docker Containers and Images using Go and DockerFile.

Content:

  1. Dockerfiles
  1. Persistent Storage
  1. Networking

Basics of Dockerfile

Creation of Dockerfile

Syntax:

vi Dockerfile

Building a Dockerfile to create Docker Image

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 .

Running a Docker Image to create Docker Container

Syntax:

docker run -it --name <Docker Container Name> --rm <Docker image name> <list of executable commands separated by ;>