2017-07-10 7 views
0

Dockerfile:エラーメッセージドッキングウィンドウのイメージ構築しながら、 "エラー処理tarファイルを(終了ステータス1)"

FROM centos:6.7 

RUN yum -y groupinstall 'Development Tools' 

RUN mkdir /compose-portal 

ADD roche-ui /compose-portal/roche-ui 

ADD http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz /compose-portal/ 

WORKDIR "/compose-portal/Python-2.7.6" 

ADD . ./configure 

WORKDIR "/compose-portal" 

RUN curl --silent --location https://rpm.nodesource.com/setup_5.x | bash - 

RUN yum -y install nodejs 

WORKDIR "/compose-portal/roche-ui" 

RUN npm install; npm install -g bower; bower --allow-root install; exit 0 

EXPOSE 3000 

ENTRYPOINT npm start 

ガット次のエラー:

Error message while building a docker image "Error processing tar file(exit status 1): Error setting up pivot dir: mkdir /var/lib/docker/overlay/58a0a77992c4abd3328a5a6ee62abd5c5dedcb1a06858e829beed6c707a08634/merged/compose-portal/Python-2.7.6/configure/.pivot_root902123111: not a directory"

答えて

0

あなたADDリモートタールファイルを開き、ディレクトリとして自動的に解凍しようとします ADD http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz /compose-portal/ ドッカーはリモートからtarを解凍しません自動的にアドレスを指定します。

If is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) then it is unpacked as a directory. Resources from remote URLs are not decompressed. When a directory is copied or unpacked, it has the same behavior as tar -x, the result is the union of:

から:https://docs.docker.com/engine/reference/builder/#add

多分あなたはそれを手動で解凍する必要があります。

関連する問題