$ ./guess_the_languageDevOps
DevOps · medium · #7

What does this command do?

docker exec -it web bash
  1. Open an interactive shell in a running container
  2. Create a new container from the base image
  3. Stop the container and delete its writable layer
  4. Copy files out of the container onto the host
docker exec -it runs an interactive command inside a running container.
Play DevOps ▸