Day 20: Docker commands Cheat-Sheet
Docker commands:
To builds an image from a Dockerfile.
- docker build -t <image_name> .
Runs a command in a new container.
- docker run -d --name <container-name> -p 80:80 <image-name>
Starts one or more stopped containers.
- ...
learnwithlokesh.hashnode.dev2 min read