Dockerfile

From ElectroDragon
Jump to navigation Jump to search

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