$ ./guess_the_languageDevOps
DevOps · medium · #71

What does this do?

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