Description of problem: will meet "API error (403)" error when pushing image with Docker credentials. Version-Release number of selected component (if applicable): openshift v0.5.2-79-gfa8c049 kubernetes v0.17.0-441-g6b6b47a How reproducible: always Steps to Reproduce: 1. Setup the OpenShift V3 environment according to: https://github.com/openshift/origin/tree/master/examples/sample-app 2. Get the '.dockercfg' file which contain account credential 1) register an account on DockerHub 2) log in to the registry to get the account credential $ docker login ## the credential file named ".dockercfg" will be generated under $HOME directory after login successfully 3. Create the secret $ openshift ex bundle-secret push ~/.dockercfg | osc create -f - 4. Modify the tempate json files, like below: $ cat template.json <----------snip---------> { "kind": "ImageStream", "apiVersion": "v1beta1", "metadata": { "name": "origin-ruby-sample" }, "spec": { "dockerImageRepository": "chunyunchen/sample-sti0522" } <----------snip---------> "parameters": { "output": { "to": { "name": "origin-ruby-sample" }, "pushSecret":{ "name":"push" ## the "pushSecret.name" is the same with the "name" in step 3 } }, <----------snip---------> "strategy": { "stiStrategy": { "from": { "kind": "ImageStreamTag", "name": "ruby-20-centos7:latest" }, "env": [{ "name": "BUILD_LOGLEVEL", "value": "5" }] }, "type": "STI" } }, <----------snip---------> 5. Create the application to trigger build and wait the build to finish $ osc process -f template.json | osc create -f - 6. Check the build logs $ osc get build $ osc build-logs ruby-sample-build-1 Actual results: I0522 10:05:56.658804 1 cfg.go:88] Found Docker authentication configuration in '/root/.dockercfg' I0522 10:05:56.659890 1 cfg.go:50] Problem accessing /root/.dockercfg: stat /root/.dockercfg: no such file or directory I0522 10:05:56.659986 1 sti.go:67] Creating a new S2I builder with build request: api.Request{BaseImage:"openshift/ruby-20-centos7:latest", DockerConfig:(*api.DockerConfig)(0xc2083058c0), DockerCfgPath:"", PullAuthentication:docker.AuthConfiguration{Username:"", Password:"", Email:"", ServerAddress:""}, PreserveWorkingDir:false, Source:"git://github.com/openshift/ruby-hello-world.git", Ref:"", Tag:"chunyunchen/sample-sti0522:latest", Incremental:true, RemovePreviousImage:false, Environment:map[string]string{"OPENSHIFT_BUILD_NAME":"ruby-sample-build-1", "OPENSHIFT_BUILD_NAMESPACE":"chunpp2", "OPENSHIFT_BUILD_SOURCE":"git://github.com/openshift/ruby-hello-world.git", "BUILD_LOGLEVEL":"5"}, CallbackURL:"", ScriptsURL:"", Location:"", ForcePull:false, WorkingDir:"", LayeredBuild:false, InstallDestination:"", Quiet:false, ContextDir:""} I0522 10:05:56.676244 1 docker.go:170] Image openshift/ruby-20-centos7:latest available locally I0522 10:05:56.678704 1 sti.go:114] Building chunyunchen/sample-sti0522:latest I0522 10:05:56.678991 1 clone.go:26] Cloning into /tmp/sti643372262/upload/src I0522 10:05:56.992728 1 docker.go:170] Image openshift/ruby-20-centos7:latest available locally I0522 10:05:56.992777 1 docker.go:222] Image contains STI_SCRIPTS_URL set to 'image:///usr/local/sti' I0522 10:05:56.992853 1 download.go:55] Using image internal scripts from: image:///usr/local/sti/assemble I0522 10:05:56.992896 1 download.go:55] Using image internal scripts from: image:///usr/local/sti/run I0522 10:05:56.995401 1 docker.go:170] Image openshift/ruby-20-centos7:latest available locally I0522 10:05:56.995416 1 docker.go:222] Image contains STI_SCRIPTS_URL set to 'image:///usr/local/sti' I0522 10:05:56.995430 1 download.go:55] Using image internal scripts from: image:///usr/local/sti/save-artifacts I0522 10:05:56.995441 1 sti.go:185] Using assemble from image:///usr/local/sti I0522 10:05:56.995448 1 sti.go:185] Using run from image:///usr/local/sti I0522 10:05:56.995453 1 sti.go:185] Using save-artifacts from image:///usr/local/sti I0522 10:05:56.997771 1 sti.go:122] Clean build will be performed I0522 10:05:56.997780 1 sti.go:125] Performing source build from git://github.com/openshift/ruby-hello-world.git I0522 10:05:56.997786 1 sti.go:133] Building chunyunchen/sample-sti0522:latest I0522 10:05:56.997854 1 sti.go:330] Using image name openshift/ruby-20-centos7:latest I0522 10:05:56.997896 1 environment.go:52] Setting 'RACK_ENV' to 'production' I0522 10:05:56.998867 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/.gitignore as src/.gitignore I0522 10:05:56.999003 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/.sti/bin/README as src/.sti/bin/README I0522 10:05:57.007325 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/.sti/environment as src/.sti/environment I0522 10:05:57.007428 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/Dockerfile as src/Dockerfile I0522 10:05:57.007676 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/Gemfile as src/Gemfile I0522 10:05:57.007972 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/Gemfile.lock as src/Gemfile.lock I0522 10:05:57.008045 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/README.md as src/README.md I0522 10:05:57.008148 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/Rakefile as src/Rakefile I0522 10:05:57.008337 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/app.rb as src/app.rb I0522 10:05:57.008511 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/config/database.rb as src/config/database.rb I0522 10:05:57.008844 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/config/database.yml as src/config/database.yml I0522 10:05:57.015675 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/config.ru as src/config.ru I0522 10:05:57.015873 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/db/migrate/20141102191902_create_key_pair.rb as src/db/migrate/20141102191902_create_key_pair.rb I0522 10:05:57.016004 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/models.rb as src/models.rb I0522 10:05:57.016120 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/run.sh as src/run.sh I0522 10:05:57.016228 1 tar.go:133] Adding to tar: /tmp/sti643372262/upload/src/views/main.erb as src/views/main.erb I0522 10:05:57.018771 1 docker.go:268] Base directory for STI scripts is '/usr/local/sti'. Untarring destination is '/tmp'. I0522 10:05:57.019290 1 docker.go:294] Creating container using config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:true AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[RACK_ENV=production OPENSHIFT_BUILD_NAME=ruby-sample-build-1 OPENSHIFT_BUILD_NAMESPACE=chunpp2 OPENSHIFT_BUILD_SOURCE=git://github.com/openshift/ruby-hello-world.git BUILD_LOGLEVEL=5] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/local/sti/assemble] DNS:[] Image:openshift/ruby-20-centos7:latest Volumes:map[] VolumesFrom: WorkingDir: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Labels:map[]} I0522 10:05:57.418436 1 docker.go:301] Attaching to container I0522 10:05:57.439271 1 docker.go:354] Starting container I0522 10:05:57.651316 1 docker.go:364] Waiting for container I0522 10:05:58.072179 1 sti.go:392] ---> Installing application source I0522 10:05:58.072366 1 sti.go:392] ---> Building your Ruby application from source I0522 10:05:58.072375 1 sti.go:392] ---> Running 'bundle install --deployment' I0522 10:06:02.355078 1 sti.go:392] Fetching gem metadata from https://rubygems.org/.......... I0522 10:06:06.884790 1 sti.go:392] Installing rake (10.3.2) I0522 10:06:07.132675 1 sti.go:392] Installing i18n (0.6.11) I0522 10:06:09.200519 1 sti.go:392] Installing json (1.8.1) I0522 10:06:09.399572 1 sti.go:392] Installing minitest (5.4.2) I0522 10:06:09.624253 1 sti.go:392] Installing thread_safe (0.3.4) I0522 10:06:09.897149 1 sti.go:392] Installing tzinfo (1.2.2) I0522 10:06:10.267330 1 sti.go:392] Installing activesupport (4.1.7) I0522 10:06:10.375644 1 sti.go:392] Installing builder (3.2.2) I0522 10:06:10.536959 1 sti.go:392] Installing activemodel (4.1.7) I0522 10:06:10.734331 1 sti.go:392] Installing arel (5.0.1.20140414130214) I0522 10:06:11.057370 1 sti.go:392] Installing activerecord (4.1.7) I0522 10:06:16.204587 1 sti.go:392] Installing mysql2 (0.3.16) I0522 10:06:16.870209 1 sti.go:392] Installing rack (1.5.2) I0522 10:06:17.019895 1 sti.go:392] Installing rack-protection (1.5.3) I0522 10:06:17.167296 1 sti.go:392] Installing tilt (1.4.1) I0522 10:06:17.526210 1 sti.go:392] Installing sinatra (1.4.5) I0522 10:06:17.634384 1 sti.go:392] Installing sinatra-activerecord (2.0.3) I0522 10:06:17.634952 1 sti.go:392] Using bundler (1.3.5) I0522 10:06:17.636132 1 sti.go:392] Your bundle is complete! I0522 10:06:17.636300 1 sti.go:392] It was installed into ./bundle I0522 10:06:17.661419 1 sti.go:392] ---> Cleaning up unused ruby gems I0522 10:06:18.361401 1 docker.go:370] Container exited I0522 10:06:18.361453 1 docker.go:376] Invoking postExecution function I0522 10:06:18.361493 1 environment.go:52] Setting 'RACK_ENV' to 'production' I0522 10:06:18.361515 1 docker.go:408] Committing container with config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:false AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RACK_ENV=production OPENSHIFT_BUILD_SOURCE=git://github.com/openshift/ruby-hello-world.git BUILD_LOGLEVEL=5 OPENSHIFT_BUILD_NAME=ruby-sample-build-1 OPENSHIFT_BUILD_NAMESPACE=chunpp2] Cmd:[/usr/local/sti/run] DNS:[] Image: Volumes:map[] VolumesFrom: WorkingDir: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Labels:map[]} I0522 10:06:23.671104 1 sti.go:249] Successfully built chunyunchen/sample-sti0522:latest I0522 10:06:23.671126 1 sti.go:250] Tagged 3be4475b1cf13b7d4029c393ea4c1ab420c60dc8149dd5e92a2998e416dd5554 as chunyunchen/sample-sti0522:latest I0522 10:06:26.726926 1 cleanup.go:24] Removing temporary directory /tmp/sti643372262 I0522 10:06:26.726981 1 fs.go:99] Removing directory '/tmp/sti643372262' I0522 10:06:26.728765 1 cfg.go:88] Found Docker authentication configuration in '/root/.dockercfg' I0522 10:06:26.728777 1 cfg.go:46] PUSH_DOCKERCFG_PATH=/var/run/secrets/push/.dockercfg I0522 10:06:26.728781 1 cfg.go:88] Found Docker authentication configuration in '/var/run/secrets/push/.dockercfg' I0522 10:06:26.728856 1 cfg.go:72] Using 'chunyunchen' user for Docker registry authentication I0522 10:06:26.728865 1 sti.go:88] Using provided push secret for pushing openshift/ruby-20-centos7:latest image I0522 10:06:26.728870 1 sti.go:91] Pushing chunyunchen/sample-sti0522:latest image ... E0522 10:06:26.732427 1 sti.go:93] Failed to push image: API error (403): Error: Status 403 trying to push repository chunyunchen/sample-sti0522 to official registry: needs to be forced F0522 10:06:27.638580 1 builder.go:75] Build error: Failed to push image: API error (403): Error: Status 403 trying to push repository chunyunchen/sample-sti0522 to official registry: needs to be forced Expected results: Should push image with Docker credentials successfully. Additional info:
Andy, do you have any idea what could be wrong here? The secrets seems to work (they are available in builder container and used for push, see the log). F0522 10:06:27.638580 1 builder.go:75] Build error: Failed to push image: API error (403): Error: Status 403 trying to push repository chunyunchen/sample-sti0522 to official registry: needs to be forced I wonder if this is push to Docker Hub or to local registry.
This is a push to the Hub. We need https://github.com/rhatdan/docker/pull/46 cherry picked to the Fedora Docker RPM. Once that's in, /etc/sysconfig/docker will need to be updated to set --confirm-def-push=false in the options.
Fixed with http://koji.fedoraproject.org/koji/buildinfo?buildID=640736. Can you install that version of Docker, add --confirm-def-push=false to /etc/sysconfig/docker, systemctl daemon-reload, systemctl restart docker, and see if it works?
it works after adding --confirm-def-push=false to docker instance, please refer to the below results: [fedora@ip-10-158-154-230 origin]$ ps -ef |grep docker root 13138 /usr/bin/docker -d --selinux-enabled --confirm-def-push=false [chunchen@F17-CCY cmd]$ osc build-logs ruby-sample-build-1 I0604 05:46:50.080042 1 sti.go:388] ---> Installing application source I0604 05:46:50.080199 1 sti.go:388] ---> Building your Ruby application from source I0604 05:46:50.080208 1 sti.go:388] ---> Running 'bundle install --deployment' I0604 05:46:55.182144 1 sti.go:388] Fetching gem metadata from https://rubygems.org/.......... I0604 05:47:03.316814 1 sti.go:388] Installing rake (10.3.2) I0604 05:47:03.481823 1 sti.go:388] Installing i18n (0.6.11) I0604 05:47:08.909672 1 sti.go:388] Installing json (1.8.1) I0604 05:47:09.421325 1 sti.go:388] Installing minitest (5.4.2) I0604 05:47:09.724323 1 sti.go:388] Installing thread_safe (0.3.4) I0604 05:47:10.312443 1 sti.go:388] Installing tzinfo (1.2.2) I0604 05:47:11.221124 1 sti.go:388] Installing activesupport (4.1.7) I0604 05:47:11.287200 1 sti.go:388] Installing builder (3.2.2) I0604 05:47:11.518184 1 sti.go:388] Installing activemodel (4.1.7) I0604 05:47:11.852534 1 sti.go:388] Installing arel (5.0.1.20140414130214) I0604 05:47:12.408228 1 sti.go:388] Installing activerecord (4.1.7) I0604 05:47:21.549757 1 sti.go:388] Installing mysql2 (0.3.16) I0604 05:47:22.265569 1 sti.go:388] Installing rack (1.5.2) I0604 05:47:22.460257 1 sti.go:388] Installing rack-protection (1.5.3) I0604 05:47:22.719668 1 sti.go:388] Installing tilt (1.4.1) I0604 05:47:23.442897 1 sti.go:388] Installing sinatra (1.4.5) I0604 05:47:23.488559 1 sti.go:388] Installing sinatra-activerecord (2.0.3) I0604 05:47:23.488577 1 sti.go:388] Using bundler (1.3.5) I0604 05:47:23.488581 1 sti.go:388] Your bundle is complete! I0604 05:47:23.488585 1 sti.go:388] It was installed into ./bundle I0604 05:47:23.552818 1 sti.go:388] ---> Cleaning up unused ruby gems I0604 05:47:41.815184 1 sti.go:96] Using provided push secret for pushing openshift/ruby-20-centos7:latest image I0604 05:47:41.815315 1 sti.go:99] Pushing chunyunchen/sample-sti0604:latest image ... I0604 05:52:09.590407 1 sti.go:103] Successfully pushed chunyunchen/sample-sti0604:latest
We'll have 1 more build of Docker for Fedora 21 that will remove --confirm-def-push and not require confirmation to push to the Hub. I'll update this when that's available.
https://admin.fedoraproject.org/updates/FEDORA-2015-9598/docker-io-1.6.2-3.gitc3ca5bb.fc21 is the newer build that removes the need to "force" pushing to the Hub.
*** Bug 1231648 has been marked as a duplicate of this bug. ***
(In reply to Andy Goldstein from comment #6) > https://admin.fedoraproject.org/updates/FEDORA-2015-9598/docker-io-1.6.2-3. > gitc3ca5bb.fc21 is the newer build that removes the need to "force" pushing > to the Hub. Using the newer build docker-io-1.6.2-3.gitc3ca5bb.fc21.x86_64, it can push to dockerhub success. Could you please set the bug to on_qa ? The bug status is still new. [fedora@ip-10-147-46-133 ~]$ rpm -qa|grep docker docker-io-1.6.2-3.gitc3ca5bb.fc21.x86_64 [fedora@ip-10-147-46-133 ~]$ oc build-logs ruby-sample-build-4 -n dma I0714 06:34:34.513224 1 cfg.go:78] Found Docker authentication configuration in '/root/.dockercfg' I0714 06:34:34.514469 1 cfg.go:46] PULL_DOCKERCFG_PATH=/var/run/secrets/openshift.io/pull/.dockercfg I0714 06:34:34.514579 1 cfg.go:78] Found Docker authentication configuration in '/var/run/secrets/openshift.io/pull/.dockercfg' I0714 06:34:34.514722 1 cfg.go:64] Using deshuai user for Docker authentication I0714 06:34:34.514828 1 util.go:34] Using dma credentials for pulling openshift/ruby-20-centos7:latest I0714 06:34:34.514886 1 sti.go:90] Using provided pull secret for pulling openshift/ruby-20-centos7:latest image I0714 06:34:34.514966 1 sti.go:92] Creating a new S2I builder with build config: "Builder Image:\t\topenshift/ruby-20-centos7:latest\nSource:\t\t\thttps://github.com/openshift/ruby-hello-world.git\nOutput Image Tag:\tdeshuai/origin-ruby-sample:latest\nEnvironment:\t\tOPENSHIFT_BUILD_NAME=ruby-sample-build-4,OPENSHIFT_BUILD_NAMESPACE=dma,OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-hello-world.git\nIncremental Build:\tdisabled\nRemove Old Build:\tdisabled\nForce Pull:\t\tdisabled\nQuiet:\t\t\tdisabled\nLayered Build:\t\tdisabled\nDocker Endpoint:\tunix:///var/run/docker.sock\nDocker Pull Config:\t/var/run/secrets/openshift.io/pull/.dockercfg\nDocker Pull User:\tdeshuai\n" I0714 06:34:34.526785 1 docker.go:207] Image openshift/ruby-20-centos7:latest available locally I0714 06:34:34.529268 1 sti.go:98] Starting S2I build from dma/ruby-sample-build-4 BuildConfig ... I0714 06:34:34.529284 1 sti.go:117] Building deshuai/origin-ruby-sample:latest I0714 06:34:34.529614 1 clone.go:27] Cloning into /tmp/sti109224164/upload/src I0714 06:34:35.215192 1 docker.go:207] Image openshift/ruby-20-centos7:latest available locally I0714 06:34:35.215214 1 docker.go:313] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/local/sti' I0714 06:34:35.215240 1 download.go:57] Using image internal scripts from: image:///usr/local/sti/assemble I0714 06:34:35.215250 1 download.go:57] Using image internal scripts from: image:///usr/local/sti/run I0714 06:34:35.221996 1 docker.go:207] Image openshift/ruby-20-centos7:latest available locally I0714 06:34:35.222008 1 docker.go:313] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/local/sti' I0714 06:34:35.222023 1 download.go:57] Using image internal scripts from: image:///usr/local/sti/save-artifacts I0714 06:34:35.222037 1 sti.go:204] Using assemble from image:///usr/local/sti I0714 06:34:35.222046 1 sti.go:204] Using run from image:///usr/local/sti I0714 06:34:35.222051 1 sti.go:204] Using save-artifacts from image:///usr/local/sti I0714 06:34:35.222058 1 sti.go:125] Clean build will be performed I0714 06:34:35.222061 1 sti.go:128] Performing source build from https://github.com/openshift/ruby-hello-world.git I0714 06:34:35.222066 1 sti.go:138] Building deshuai/origin-ruby-sample:latest I0714 06:34:35.222070 1 sti.go:349] Using image name openshift/ruby-20-centos7:latest I0714 06:34:35.222106 1 environment.go:52] Setting 'RACK_ENV' to 'production' I0714 06:34:35.222819 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/.gitignore as src/.gitignore I0714 06:34:35.222917 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/.sti/bin/README as src/.sti/bin/README I0714 06:34:35.223003 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/.sti/environment as src/.sti/environment I0714 06:34:35.223054 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/Dockerfile as src/Dockerfile I0714 06:34:35.223105 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/Gemfile as src/Gemfile I0714 06:34:35.223176 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/Gemfile.lock as src/Gemfile.lock I0714 06:34:35.223270 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/README.md as src/README.md I0714 06:34:35.223347 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/Rakefile as src/Rakefile I0714 06:34:35.223410 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/app.rb as src/app.rb I0714 06:34:35.223494 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/config/database.rb as src/config/database.rb I0714 06:34:35.225905 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/config/database.yml as src/config/database.yml I0714 06:34:35.226056 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/config.ru as src/config.ru I0714 06:34:35.226234 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/db/migrate/20141102191902_create_key_pair.rb as src/db/migrate/20141102191902_create_key_pair.rb I0714 06:34:35.226368 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/models.rb as src/models.rb I0714 06:34:35.226487 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/run.sh as src/run.sh I0714 06:34:35.226599 1 tar.go:133] Adding to tar: /tmp/sti109224164/upload/src/views/main.erb as src/views/main.erb I0714 06:34:35.238192 1 docker.go:313] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/local/sti' I0714 06:34:35.238210 1 docker.go:375] Base directory for STI scripts is '/usr/local/sti'. Untarring destination is '/tmp'. I0714 06:34:35.238222 1 docker.go:401] Creating container using config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:true AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[RACK_ENV=production OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-hello-world.git OPENSHIFT_BUILD_NAME=ruby-sample-build-4 OPENSHIFT_BUILD_NAMESPACE=dma] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/local/sti/assemble] DNS:[] Image:openshift/ruby-20-centos7:latest Volumes:map[] VolumesFrom: WorkingDir: MacAddress: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Labels:map[]} I0714 06:34:35.452494 1 docker.go:408] Attaching to container I0714 06:34:35.458435 1 docker.go:465] Starting container I0714 06:34:35.698694 1 docker.go:475] Waiting for container I0714 06:34:35.841760 1 sti.go:411] ---> Installing application source I0714 06:34:35.852611 1 sti.go:411] ---> Building your Ruby application from source I0714 06:34:35.852919 1 sti.go:411] ---> Running 'bundle install --deployment' I0714 06:34:39.848119 1 sti.go:411] Fetching gem metadata from https://rubygems.org/.......... I0714 06:34:44.252221 1 sti.go:411] Installing rake (10.3.2) I0714 06:34:44.684454 1 sti.go:411] Installing i18n (0.6.11) I0714 06:34:46.892080 1 sti.go:411] Installing json (1.8.1) I0714 06:34:47.413676 1 sti.go:411] Installing minitest (5.4.2) I0714 06:34:47.669819 1 sti.go:411] Installing thread_safe (0.3.4) I0714 06:34:47.996273 1 sti.go:411] Installing tzinfo (1.2.2) I0714 06:34:48.480864 1 sti.go:411] Installing activesupport (4.1.7) I0714 06:34:48.636805 1 sti.go:411] Installing builder (3.2.2) I0714 06:34:48.819357 1 sti.go:411] Installing activemodel (4.1.7) I0714 06:34:49.074127 1 sti.go:411] Installing arel (5.0.1.20140414130214) I0714 06:34:50.597922 1 sti.go:411] Installing activerecord (4.1.7) I0714 06:34:58.491287 1 sti.go:411] Installing mysql2 (0.3.16) I0714 06:34:59.072045 1 sti.go:411] Installing rack (1.5.2) I0714 06:34:59.254450 1 sti.go:411] Installing rack-protection (1.5.3) I0714 06:34:59.418587 1 sti.go:411] Installing tilt (1.4.1) I0714 06:34:59.761814 1 sti.go:411] Installing sinatra (1.4.5) I0714 06:34:59.868725 1 sti.go:411] Installing sinatra-activerecord (2.0.3) I0714 06:34:59.869601 1 sti.go:411] Using bundler (1.3.5) I0714 06:34:59.875280 1 sti.go:411] Your bundle is complete! I0714 06:34:59.875470 1 sti.go:411] It was installed into ./bundle I0714 06:34:59.917590 1 sti.go:411] ---> Cleaning up unused ruby gems I0714 06:35:00.628837 1 docker.go:481] Container exited I0714 06:35:00.628917 1 docker.go:487] Invoking postExecution function I0714 06:35:00.628960 1 environment.go:52] Setting 'RACK_ENV' to 'production' I0714 06:35:00.628989 1 docker.go:521] Committing container with config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:false AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RACK_ENV=production OPENSHIFT_BUILD_NAME=ruby-sample-build-4 OPENSHIFT_BUILD_NAMESPACE=dma OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-hello-world.git] Cmd:[/usr/local/sti/run] DNS:[] Image: Volumes:map[] VolumesFrom: WorkingDir: MacAddress: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Labels:map[io.openshift.s2i.build.commit.message:Merge pull request #42 from bparees/hello io.openshift.s2i.build.source-location:https://github.com/openshift/ruby-hello-world.git io.k8s.display-name:deshuai/origin-ruby-sample:latest io.openshift.s2i.build.image:openshift/ruby-20-centos7:latest io.openshift.s2i.build.commit.author:Ben Parees <bparees.github.com> io.openshift.s2i.build.commit.date:Thu Jun 18 14:58:49 2015 -0400 io.openshift.s2i.build.commit.id:2baf585 io.openshift.s2i.build.commit.ref:master]} I0714 06:35:06.278670 1 sti.go:269] Successfully built deshuai/origin-ruby-sample:latest I0714 06:35:08.589604 1 cleanup.go:23] Removing temporary directory /tmp/sti109224164 I0714 06:35:08.589729 1 fs.go:99] Removing directory '/tmp/sti109224164' I0714 06:35:08.592478 1 cfg.go:78] Found Docker authentication configuration in '/root/.dockercfg' I0714 06:35:08.592540 1 cfg.go:46] PUSH_DOCKERCFG_PATH=/var/run/secrets/openshift.io/push/.dockercfg I0714 06:35:08.593004 1 cfg.go:78] Found Docker authentication configuration in '/var/run/secrets/openshift.io/push/.dockercfg' I0714 06:35:08.597341 1 cfg.go:64] Using deshuai user for Docker authentication I0714 06:35:08.597381 1 sti.go:145] Using provided push secret for pushing deshuai/origin-ruby-sample:latest image I0714 06:35:08.597390 1 sti.go:148] Pushing deshuai/origin-ruby-sample:latest image ... The push refers to a repository [docker.io/deshuai/origin-ruby-sample] (len: 1) Image already exists Image already exists Image already exists Image already exists Digest: sha256:d5eb1c9c85ca93e9daa8930e9a56c876bb1d67e1eea41f1b6ae89ecbe033d3a9 I0714 06:35:09.511009 1 sti.go:152] Successfully pushed deshuai/origin-ruby-sample:latest