Copy file to local folder from docker container

2019-08-12

Check containerId, by runing this command:

sudo docker ps

In order to copy a file from a container to the local computer, use following command:

docker cp :/file_path_inside_container /local_path

You can check full path to file inside the container with this command:

readlink -f file.ext