I am currently new to Docker.
I would like to know how can I see and reas the images and containers generated after running the dockerfile.
I know they are stored in MobyLinux under HyperV directory.
But I cant seem to enter or access these files.
Could some one shed any info on this?
You can see them with the
docker images command. You can also use
export commands to save then contents to your local filesystem.
The Linux environment where the containers run is no user-accessible.
When I run my docker image, it starts a container which runs a python code. The output of the python code is saved in a base directory as follows,
BASE_DIR = '/scratch/test-example/' workflow = pe.Workflow(name="workflow")
This output should be saved in folder ‘/scratch/test-example/workflow’
To observe this output, I am trying to copy the ‘workflow’ folder onto my C: as follows,
docker cp 02cbc1004955:/workflow /C/container-copies
Where the number ‘02cbc1004955’ is the container id and I save the ‘workflow’ folder into C:/container copies on my computer.
But everytime I run this command, I get the following error message,
Error response from daemon: lstat /var/lib/docker/aufs/mnt/3f147cf2d3a6aed97d2640019905928137286210c332d7be503a2b10d13ca523/workflow: no such file or directory
Shouldnt I be able to copy this folder on my computer?