cli.fail

Practice this fail.

Get the report out.

Docker · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

Docker · Beginner

The container job has /tmp/report.txt. Copy it into the current host directory as report.txt, even though the container is stopped.

Get the report out.

$ docker ps -a

job Exited (0)

How do you copy the report from the container to the host?

3 attempts remaining

Read why this fix works

Get the report out.

docker cp job:/tmp/report.txt ./report.txt

docker cp uses container:path on the container side. It can copy from a running or stopped container; reversing the two arguments reverses the direction.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result