CompTIA Linux+ (XK0-005) — Question 149

A Linux administrator is providing a new Nginx image from the registry to local cache. Which of the following commands would allow this to happen?

Answer options

Correct answer: A

Explanation

The correct command is 'docker pull nginx' as it retrieves the specified image from the Docker registry. The other options do not serve this purpose; 'docker attach' connects to a running container, 'docker commit' creates a new image from a container's changes, and 'docker import' is used for importing a filesystem snapshot.