docker ps docker container ls # same
docker exec -it Name555 bash
docker build -t Tag123:v2 . # Uses local Dockerfile docker build -f Dockerfile22 -t Tag123:v2 .
docker run Tag123:v2 --name ContName4 docker run -it -v /host/dir:/docker/dir2 Tag123:v4 /bin/sh docker run -it -v /host/dir:/docker/dir2:ro Tag446:v7 /bin/sh # Read-only mapping
docker logs -f -n 50 ContName4
docker logs -f -n50 ContName4 2>&1 | tee ContName4.log
docker ps docker ps -a # Show all and dead ones
docker cp ContName:/dir1/dir2 ~/src/ docker cp /src/scripts ContName:/dir1/dir2/
docker export -o postmortem.tar Name555
docker inspect ContName4 docker inspect 590ba28c2ec3 | grep LogPath
docker image pull python:3.11-slim-bookworm