oscerd / mongodb-image

Dockerfile for MongoDB
0 stars 0 forks source link

docker build is unauthorized #2

Open tchia04 opened 7 years ago

tchia04 commented 7 years ago

$ docker build -t mongodb . Sending build context to Docker daemon 32.26kB Step 1/18 : FROM phusion/baseimage:0.9.16 Get https://registry-1.docker.io/v2/phusion/baseimage/manifests/0.9.16: unauthorized: incorrect username or password $ ls -tlr

oscerd commented 7 years ago

It works for me.

oscerd@ghost:~/workspace/docker-repo/docker-mongodb$ docker build -t mongodb_test .
Sending build context to Docker daemon 67.07 kB
Step 1/18 : FROM phusion/baseimage:0.9.16
0.9.16: Pulling from phusion/baseimage
a3ed95caeb02: Pull complete 
3b1d42cd9af9: Already exists 
d2ff49536f4d: Already exists 
f94adccdbb9c: Pull complete 
ae857e8dd13c: Pull complete 
327565847940: Pull complete 
Digest: sha256:f55d261778d83def4a60d38939511cbed0268fcb91383c9e3edf2877ced289d9
Status: Downloaded newer image for phusion/baseimage:0.9.16
 ---> bc823ab974aa
Step 2/18 : MAINTAINER Andrea Cosentino <ancosen1985@yahoo.com>
 ---> Running in 27f508f3ff90
 ---> 4e4b845597a4
Removing intermediate container 27f508f3ff90
Step 3/18 : RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
 ---> Running in 5b93d67f07a3
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.UBk42lWoPR --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: key 7F0CEB10: public key "Richard Kreuter <richard@10gen.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
 ---> 0e0c0ac20610
Removing intermediate container 5b93d67f07a3
Step 4/18 : RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' > /etc/apt/sources.list.d/mongodb_repo.list
 ---> Running in 6f2dee25ed2b
 ---> 4250f0a0e6f3
Removing intermediate container 6f2dee25ed2b
Step 5/18 : RUN apt-get update
 ---> Running in 02e5f31fab78
Ign http://archive.ubuntu.com trusty InRelease
Ign http://downloads-distro.mongodb.org dist InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://downloads-distro.mongodb.org dist Release.gpg [490 B]
Get:3 http://downloads-distro.mongodb.org dist Release [2040 B]
Get:4 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:5 http://downloads-distro.mongodb.org dist/10gen amd64 Packages [29.8 kB]
Get:6 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:7 http://archive.ubuntu.com trusty-updates/main Sources [500 kB]
Get:8 http://archive.ubuntu.com trusty-updates/restricted Sources [6449 B]
Get:9 http://archive.ubuntu.com trusty-updates/universe Sources [240 kB]
Get:10 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1274 kB]
Get:11 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [21.1 kB]
Get:12 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [550 kB]
Get:13 http://archive.ubuntu.com trusty-security/main Sources [181 kB]
Get:14 http://archive.ubuntu.com trusty-security/restricted Sources [5050 B]
Get:15 http://archive.ubuntu.com trusty-security/universe Sources [75.8 kB]
Get:16 http://archive.ubuntu.com trusty-security/multiverse Sources [3012 B]
Get:17 http://archive.ubuntu.com trusty-security/main amd64 Packages [828 kB]
Get:18 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [17.8 kB]
Get:19 http://archive.ubuntu.com trusty-security/universe amd64 Packages [237 kB]
Get:20 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [3997 B]
Get:21 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:22 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:23 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:24 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:25 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:26 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:27 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Fetched 22.8 MB in 1min 15s (301 kB/s)
Reading package lists...
 ---> 6b2bb17a2a31
Removing intermediate container 02e5f31fab78
Step 6/18 : RUN apt-get install -y mongodb-org
 ---> Running in 06fe7fd06d99
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
  mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 122 not upgraded.
Need to get 116 MB of archives.
After this operation, 293 MB of additional disk space will be used.
Get:1 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-shell amd64 2.6.12 [4479 kB]
Get:2 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-server amd64 2.6.12 [9541 kB]
Get:3 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-mongos amd64 2.6.12 [7214 kB]
Get:4 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org-tools amd64 2.6.12 [94.5 MB]
Get:5 http://downloads-distro.mongodb.org/repo/ubuntu-upstart/ dist/10gen mongodb-org amd64 2.6.12 [3650 B]
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
dpkg-preconfigure: unable to re-open stdin: 
Fetched 116 MB in 1min 22s (1409 kB/s)
Selecting previously unselected package mongodb-org-shell.
(Reading database ... 16004 files and directories currently installed.)
Preparing to unpack .../mongodb-org-shell_2.6.12_amd64.deb ...
Unpacking mongodb-org-shell (2.6.12) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../mongodb-org-server_2.6.12_amd64.deb ...
Unpacking mongodb-org-server (2.6.12) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../mongodb-org-mongos_2.6.12_amd64.deb ...
Unpacking mongodb-org-mongos (2.6.12) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../mongodb-org-tools_2.6.12_amd64.deb ...
Unpacking mongodb-org-tools (2.6.12) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../mongodb-org_2.6.12_amd64.deb ...
Unpacking mongodb-org (2.6.12) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org-shell (2.6.12) ...
Setting up mongodb-org-server (2.6.12) ...
Adding system user `mongodb' (UID 103) ...
Adding new user `mongodb' (UID 103) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 106) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up mongodb-org-mongos (2.6.12) ...
Setting up mongodb-org-tools (2.6.12) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org (2.6.12) ...
 ---> 1cd52912b339
Removing intermediate container 06fe7fd06d99
Step 7/18 : RUN sed 's/^bind_ip/#bind_ip/' -i /etc/mongod.conf
 ---> Running in 26a8d6aeca3a
 ---> 033adb9f79ef
Removing intermediate container 26a8d6aeca3a
Step 8/18 : COPY . /src
 ---> 62da69b3988a
Removing intermediate container 4de87cf1eaac
Step 9/18 : RUN mkdir -p /data/db
 ---> Running in 1b8971dd46be
 ---> 5f2e195004b3
Removing intermediate container 1b8971dd46be
Step 10/18 : RUN mkdir -p /etc/service/mongodb
 ---> Running in 9c95898be3b9
 ---> 94c1e346f246
Removing intermediate container 9c95898be3b9
Step 11/18 : RUN cp /src/mongodb-start /etc/service/mongodb/run
 ---> Running in c4b2829df227
 ---> b4d124587039
Removing intermediate container c4b2829df227
Step 12/18 : VOLUME /var/lib/mongodb /data/db/
 ---> Running in bb162fd6d623
 ---> daae14432081
Removing intermediate container bb162fd6d623
Step 13/18 : EXPOSE 27017 28017
 ---> Running in 6f66a9dd6951
 ---> d65cf90be8be
Removing intermediate container 6f66a9dd6951
Step 14/18 : RUN apt-get clean
 ---> Running in 1ac0967bba62
 ---> 7063f39e594f
Removing intermediate container 1ac0967bba62
Step 15/18 : RUN rm -rf /var/lib/apt/lists/*
 ---> Running in c2ad8717ff78
 ---> 88773169c78e
Removing intermediate container c2ad8717ff78
Step 16/18 : RUN rm -rf /tmp/*
 ---> Running in 6d89824b286e
 ---> 967eaa3bb2b7
Removing intermediate container 6d89824b286e
Step 17/18 : RUN rm -rf /var/tmp/*
 ---> Running in 6ec33752089b
 ---> 4e19047cfb51
Removing intermediate container 6ec33752089b
Step 18/18 : CMD /sbin/my_init
 ---> Running in 0511c97ae87b
 ---> a5650627b990
Removing intermediate container 0511c97ae87b
Successfully built a5650627b990

Can you try again?