-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
Sangyun_LEE edited this page Jul 15, 2024
·
3 revisions
docker build --rm -t irc_server .
docker run -d -p 3000:3000 irc_server
d를 붙이면 컨테이너를 백그라운드로 실행한다.
docker stop $(container name)
docker restart $(container name)
docker rm -f $(docker ps -qa)
docker ps -qa
는 현재 실행하는 모든 컨테이너의 id를 출력
docker rmi -f $(docker ps -qa)
docker image prune
docker images
docker exec -it $(container name) /bin/sh