Dockerfile

From ElectroDragon Wiki
Revision as of 21:55, 28 May 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DockerFile to build images

  • Build docker images
  • Build first
docker build -t tag_name .
docker build -t img .
  • Run
docker run --name my-custom-nginx-container -d custom-nginx
docker run --name 1 -d custom-nginx
docker run --name ct -d img