How to mount data into Docker container image
:~$ docker pull path/to/repository:~$ docker pull eu.gcr.io/finngen-sandbox-v3-containers/bioinformatics:1.0.1To list Docker images
:~$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZE
path/to/repository 1.0.1 i1m2a3g4e5 2 years ago 3.91GB:~$ docker run -dit --mount type=bind,source=/folder_where/your/targetfile_is/,target=/input_data,readonly --mount type=bind,source=/home/ivm/,target=/output_data --name tools i1m2a3g4e5:~$ docker attach toolsroot@01r23o45o67t:/#To exit container
Last updated
Was this helpful?