Debug School


Posted on

Docker commands

1.docker run
-i = interactive
-t = tty, psudo terminal
-d = ditached mode -
--rm = create container and interact with it. when interaction finished just delete. i.e. launch ephemeral container. | -d should not be used

2.docker run --name deleteme -i -t --rm alpine:3.18 sh

3.docker run -d --name -p :
4.docker inspect

  1. which docker which dockerd ps -eaf | grep ocker which containerd ps -eaf | grep usr/bin/docker ps -eaf | gre containerd ps -eaf | grep containerd docker version docker info

connect container
docker exec -it mydb sh

Top comments (0)