114k views
3 votes
What command stops a running container called 'myweb' 10 seconds after executing the request?

A) docker stop -t 10 myweb

B) docker kill -t 10 myweb

C) docker pause -t 10 myweb

D) docker rm -t 10 myweb

User Skylin R
by
8.7k points

1 Answer

6 votes

Final answer:

Option B) docker kill -t 10 myweb is the correct command to stop a running container called 'myweb' 10 seconds after executing the request.

Step-by-step explanation:

The correct command to stop a running container called 'myweb' 10 seconds after executing the request is option B) docker kill -t 10 myweb. This command sends a signal to the container to terminate it, allowing a timeout (-t) of 10 seconds for the container to shut down gracefully.

User Solnic
by
7.7k points