Docker Community Forums

Share and learn in the Docker community.

New to docker . please help


(Sainivasu) #1

Hello peeps,

So, I am using docker to run a software in order to perform an analysis.
the software examples asks me to download the data from a server with a cmd stated below
curl -L -O https://sourceforge.net/projects/miarma/files/Examples/Examples_miARma_miRNAs.tar.bz2

now I want to perform an analysis on my own dataset. How can I download the data from my computer into a container ?


(Martin Terp) #2

Do you want to copy a file into a container? check https://docs.docker.com/engine/reference/commandline/cp/


(Jjfraney) #3

Maybe you want to bind-mount the directory (containing the data file) so your application can find it?

move the data to a new directory: mv *.bz2 data
then run your container like this:
docker run … -v ./data:/internal/path/expected/by/analyzer analyzer-image