Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old docker version on centos #35

Closed
iconoeugen opened this issue Jul 20, 2016 · 2 comments
Closed

Old docker version on centos #35

iconoeugen opened this issue Jul 20, 2016 · 2 comments

Comments

@iconoeugen
Copy link
Contributor

The latest centos images that are pushed on hub.docker.com require at least docker engine 1.10 that supports schema version 2:

Downloading "https://github.com/iconoeugen/docker-nginx.git" ...
Step 1 : FROM centos@sha256:7b754086d2c7d74ac39dc0a2545d7b06d4266f873d502feb5b3e8bfca27c5dd8
Trying to pull repository docker.io/library/centos ... failed
error: build error: unsupported schema version 2 for tag "sha256:7b754086d2c7d74ac39dc0a2545d7b06d4266f873d502feb5b3e8bfca27c5dd8"
iconoeugen added a commit to iconoeugen/vagrant-origin that referenced this issue Jul 20, 2016
…tos.

Removed docker package version specification for Centos yum install to install latest version available. Currently latest version of docker is 1.10, which support schema version 2.
iconoeugen added a commit to iconoeugen/vagrant-origin that referenced this issue Jul 20, 2016
…tos.

Removed docker package version specification for Centos yum install to install latest version available. Currently latest version of docker is 1.10, which support schema version 2.
Removed docker 1.10 unknown storage option "dm.no_warn_on_loop_devices" (see: moby/moby#24161).
@jfmatth
Copy link

jfmatth commented Jul 20, 2016

The issue around docker 1.10 is for docker storage. Typically you setup another volume that docker-storage-setup can utilize, and in Centos vagrant image, that's easy (add another disk, run docker-storage-setup, viola). However, on other .BOX's that's not so easy.

Looks like loopback support is going away quickly in docker, unless i'm not seeing this right.

jorgemoralespou added a commit that referenced this issue Jul 21, 2016
Fix #35: Install latest version of docker on centos.
@dwmkerr
Copy link

dwmkerr commented Jan 30, 2017

For anyone who Google's their way here like I did, you can also try:

oc set env dc/docker-registry -n default REGISTRY_MIDDLEWARE_REPOSITORY_OPENSHIFT_ACCEPTSCHEMA2=true
systemctl restart origin-master.service

This manually enables the new schema version.

See: https://access.redhat.com/solutions/2391351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants