What does this do?
docker exec -it web sh
- Opens an interactive shell inside a running container
- Creates a brand-new container from the base image
- Restarts the running container in the background
- Copies files out of the container onto the host
exec runs a command in an existing container; -it attaches a terminal.
Play DevOps ▸