A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?
A.
docker cp container_id/deployment.yaml deployment.yaml
B.
docker cp container_id:/deployment.yaml deployment.yaml
C.
docker cp deployment.yaml local://deployment.yaml
D.
docker cp container_id/deployment.yaml local://deployment.yaml
Given answer appears correct(B)
The file is being copied from the container (SRC) to the host (DST)
docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH
upvoted 3 times
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
8 months, 3 weeks agoCkl22
10 months, 2 weeks ago