How to mount the current working directory onto Docker container?
我正在尝试将当前工作目录装载到Docker容器上,但没有工作。这是我的码头文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | FROM ubuntu:14.04.3 MAINTAINER Upendra Devisetty RUN apt-get update && apt-get install -y g++ \ make \ git \ zlib1g-dev \ python \ wget \ curl \ python-matplotlib ENV BINPATH /usr/bin ENV HISAT2GIT https://[email protected]/upendra_35/evolinc.git RUN git clone"$HISAT2GIT" RUN chmod +x evolinc/evolinc-part-I.sh && cp evolinc/evolinc-part-I.sh $BINPATH RUN wget -O- http://cole-trapnell-lab.github.io/cufflinks/assets/downloads/cufflinks-2.2.1.Linux_x86_64.tar.gz | tar xzvf - RUN wget -O- https://github.com/TransDecoder/TransDecoder/archive/2.0.1.tar.gz | tar xzvf - RUN wget -O- http://seq.cs.iastate.edu/CAP3/cap3.linux.x86_64.tar | tar vfx - RUN curl ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.2.31+-x64-linux.tar.gz > ncbi-blast-2.2.31+-x64-linux.tar.gz RUN tar xvf ncbi-blast-2.2.31+-x64-linux.tar.gz RUN wget -O- http://ftp.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/q/qu/quast/quast-3.0.tar.gz | tar zxvf - RUN curl -L http://cpanmin.us | perl - App::cpanminus RUN cpanm URI/Escape.pm ENV PATH /CAP3/:$PATH ENV PATH /ncbi-blast-2.2.31+/bin/:$PATH ENV PATH /quast-3.0/:$PATH ENV PATH /cufflinks-2.2.1.Linux_x86_64/:$PATH ENV PATH /TransDecoder-2.0.1/:$PATH ENTRYPOINT ["/usr/bin/evolinc-part-I.sh"] CMD ["-h"] |
当我运行以下命令来装载当前工作目录以确保一切正常时,我看到的是所有这些依赖项都安装在当前工作目录中。
1 | docker run --rm -v $(pwd):/working-dir -w /working-dir ubuntu/evolinc:2.0 -c cuffcompare_out_annot_no_annot.combined.gtf -g Brassica_rapa_v1.2_genome.fa -r Brassica_rapa_v1.2_cds.fa -b TE_RNA_transcripts.fa |
我想,它们应该只安装在容器上,并且只有输出将在当前工作目录中生成。对不起,我对Docker很陌生,我需要一些帮助…
A卷安装在集装箱码头(
什么是差分之间的` `和`加`复制命令在一dockerfile?