Container Management 1/3

Container Management 1/3

Stopped containers are left behind

Remove stopped containers:

docker rm nostalgic_wozniak

Removing running containers must be forced:

docker rm -f nostalgic_wozniak

Container Management 2/3

Read logs (stdout/stderr of processes):

docker run -d --name web nginx
docker logs web

Display configuration of container:

docker inspect web

Container Management 3/3

Execute commands inside containers:

docker exec web pwd

Enter containers interactively:

docker exec -it websrv bash