VeryNginx icon indicating copy to clipboard operation
VeryNginx copied to clipboard

install error in build docker

Open dev-kang opened this issue 6 years ago • 1 comments

Sending build context to Docker daemon  2.048kB
Step 1/9 : FROM python:2.7.11-wheezy
2.7.11-wheezy: Pulling from library/python
47994b92ab73: Pull complete
51d05f23de0f: Pull complete
638003bf95f3: Pull complete
03d3d60a386d: Pull complete
868f872d764d: Pull complete
5eb9e6e146bd: Pull complete
1b387efcfcd4: Pull complete
Digest: sha256:baaff5dbc01e4e968899e48ea5631bcad2d0fa28e59f2b87d89447105f01b923
Status: Downloaded newer image for python:2.7.11-wheezy
 ---> bb1ba5159e19
Step 2/9 : RUN apt-get update  && apt-get install -y --no-install-recommends     wget perl make build-essential procps     libreadline-dev libncurses5-dev libpcre3-dev libssl-dev  && rm -rf /var/lib/apt/lists/*
 ---> Running in 9c8e2ba68b66
Get:1 http://security.debian.org wheezy/updates Release.gpg [1601 B]
Get:2 http://security.debian.org wheezy/updates Release [39.0 kB]
Get:3 http://security.debian.org wheezy/updates/main amd64 Packages [760 kB]
Get:4 http://httpredir.debian.org wheezy Release.gpg [2373 B]
Get:5 http://httpredir.debian.org wheezy-updates Release.gpg [1601 B]
Get:6 http://httpredir.debian.org wheezy Release [191 kB]
Get:7 http://httpredir.debian.org wheezy-updates Release [155 kB]
Get:8 http://httpredir.debian.org wheezy/main amd64 Packages [7634 kB]
Get:9 http://httpredir.debian.org wheezy-updates/main amd64 Packages [7481 B]
Fetched 8792 kB in 8s (1047 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
make is already the newest version.
libncurses5-dev is already the newest version.
libpcre3-dev is already the newest version.
libpcre3-dev set to manually installed.
procps is already the newest version.
libreadline-dev is already the newest version.
The following package was automatically installed and is no longer required:
  mime-support
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  dpkg-dev libdpkg-perl libssl1.0.0 libtimedate-perl perl-base perl-modules
Suggested packages:
  debian-keyring perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
  libpod-plainer-perl
Recommended packages:
  fakeroot libalgorithm-merge-perl libfile-fcntllock-perl libssl-doc
The following NEW packages will be installed:
  build-essential dpkg-dev libdpkg-perl libtimedate-perl
The following packages will be upgraded:
  libssl-dev libssl1.0.0 perl perl-base perl-modules wget
6 upgraded, 4 newly installed, 0 to remove and 110 not upgraded.
Need to get 15.6 MB of archives.
After this operation, 4109 kB of additional disk space will be used.
Get:1 http://security.debian.org/ wheezy/updates/main perl amd64 5.14.2-21+deb7u5 [4434 kB]
Get:2 http://httpredir.debian.org/debian/ wheezy/main libtimedate-perl all 1.2000-1 [41.2 kB]
Get:3 http://httpredir.debian.org/debian/ wheezy/main libdpkg-perl all 1.16.18 [966 kB]
Get:4 http://security.debian.org/ wheezy/updates/main perl-base amd64 5.14.2-21+deb7u5 [1534 kB]
Get:5 http://security.debian.org/ wheezy/updates/main perl-modules all 5.14.2-21+deb7u5 [3441 kB]
Get:6 http://security.debian.org/ wheezy/updates/main libssl-dev amd64 1.0.1t-1+deb7u3 [1789 kB]
Get:7 http://security.debian.org/ wheezy/updates/main libssl1.0.0 amd64 1.0.1t-1+deb7u3 [1281 kB]
Get:8 http://security.debian.org/ wheezy/updates/main wget amd64 1.13.4-3+deb7u5 [770 kB]
Get:9 http://httpredir.debian.org/debian/ wheezy/main dpkg-dev all 1.16.18 [1366 kB]
Get:10 http://httpredir.debian.org/debian/ wheezy/main build-essential amd64 11.5 [7178 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 15.6 MB in 13s (1170 kB/s)
(Reading database ... 19354 files and directories currently installed.)
Preparing to replace perl 5.14.2-21+deb7u3 (using .../perl_5.14.2-21+deb7u5_amd64.deb) ...
Unpacking replacement perl ...
Preparing to replace perl-base 5.14.2-21+deb7u3 (using .../perl-base_5.14.2-21+deb7u5_amd64.deb) ...
Unpacking replacement perl-base ...
Setting up perl-base (5.14.2-21+deb7u5) ...
(Reading database ... 19354 files and directories currently installed.)
Preparing to replace perl-modules 5.14.2-21+deb7u3 (using .../perl-modules_5.14.2-21+deb7u5_all.deb) ...
Unpacking replacement perl-modules ...
Preparing to replace libssl-dev 1.0.1e-2+deb7u21 (using .../libssl-dev_1.0.1t-1+deb7u3_amd64.deb) ...
Unpacking replacement libssl-dev ...
Preparing to replace libssl1.0.0:amd64 1.0.1e-2+deb7u21 (using .../libssl1.0.0_1.0.1t-1+deb7u3_amd64.deb) ...
Unpacking replacement libssl1.0.0:amd64 ...
Preparing to replace wget 1.13.4-3+deb7u2 (using .../wget_1.13.4-3+deb7u5_amd64.deb) ...
Unpacking replacement wget ...
Selecting previously unselected package libtimedate-perl.
Unpacking libtimedate-perl (from .../libtimedate-perl_1.2000-1_all.deb) ...
Selecting previously unselected package libdpkg-perl.
Unpacking libdpkg-perl (from .../libdpkg-perl_1.16.18_all.deb) ...
Selecting previously unselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.16.18_all.deb) ...
Selecting previously unselected package build-essential.
Unpacking build-essential (from .../build-essential_11.5_amd64.deb) ...
Setting up libssl1.0.0:amd64 (1.0.1t-1+deb7u3) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up libssl-dev (1.0.1t-1+deb7u3) ...
Setting up wget (1.13.4-3+deb7u5) ...
Setting up perl-modules (5.14.2-21+deb7u5) ...
Setting up perl (5.14.2-21+deb7u5) ...
Setting up libtimedate-perl (1.2000-1) ...
Setting up libdpkg-perl (1.16.18) ...
Setting up dpkg-dev (1.16.18) ...
Setting up build-essential (11.5) ...
 ---> e3892fbe2b78
Step 3/9 : RUN mkdir /code
 ---> Running in bddd853548f9
 ---> 92b201bcd89e
Step 4/9 : COPY . /code
 ---> 06db24451452
Step 5/9 : WORKDIR /code
 ---> 9c835d693b58
Step 6/9 : RUN groupadd -r nginx && useradd -r -g nginx nginx
 ---> Running in 58105404beef
 ---> 54001485c17d
Step 7/9 : RUN python install.py install
 ---> Running in 0be1d3646ccb
python: can't open file 'install.py': [Errno 2] No such file or directory
The command '/bin/sh -c python install.py install' returned a non-zero code: 2

dev-kang avatar Jan 14 '18 04:01 dev-kang

I move dockerfile to the source root .

In the source root, run command 'docker build -t verynginx .' . That's all right!

I also can run the command 'docker build -t verynginx ./Docker/', It's success!

dev-kang avatar Jan 14 '18 04:01 dev-kang