Reputation: 11
I trying to copy a file from a container to my local machine.
As you can see below, my container is runnig...
❯ docker ps
CONTAINER ID | IMAGE | COMMAND | CREATED | STATUS | PORTS | NAMES |
---|---|---|---|---|---|---|
1cbed27defce | postgres | "docker-entrypoint.s…" | 17 months ago | Up 44 minutes | 0.0.0.0:5432->5432/tcp | pg |
When I use the docker cp
command, I have this output...
❯ sudo docker cp pg:recom.bkp /home/melnik/dev/recom
[sudo] senha para melnik:
Error response from daemon: No such container: pg
I've already tried the command docker exec pg pwd
to get the correct path, but the output is just /
Upvotes: 1
Views: 355