Docker
[Docker] Basic Commands with a Docker Container
brightlightkim
2022. 4. 28. 08:41
docker build --tag [name] .
= Build the docker file
docker ps
= Same command of "ls" in linux. Shows the contents
docker start [docker container name]
= begin the docker
docker rm [docker container name]
= remove the docker
docker run -p [local port number]:[port in container] --name [name of the container] -d [name of the image]
= image name is set with the port in local and port in container
docker logs [name of the container]
= see how the docker is doing
docker logs -f [name of the container]
= see how the docker is doing concurrently.
from https://www.youtube.com/watch?v=iqqDU2crIEQ&t=420s