0 votes
in Docker by

How can you run a command inside an existing Docker container?

a) docker exec

b) docker attach

c) docker run

d) docker enter

1 Answer

0 votes
by

a) docker exec

Explanation:

The docker exec command allows you to run commands inside an existing container. For example, docker exec -it container_id /bin/bash would open a bash shell inside the container with ID container_id

...