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 

 

'Docker' 카테고리의 다른 글

[Docker] Build Containers from scratch  (0) 2022.04.26
[Docker] Overview  (0) 2022.04.22
[Docker] Basic Configuration and Functions  (0) 2022.04.22
[Docker] Intro (Get Started)  (0) 2022.04.03