-
Notifications
You must be signed in to change notification settings - Fork 69
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
starting container with HostConfig was deprecated since v1.10 and removed in v1.12 #6
Comments
Where does hostconfig go in 1.12? |
@smarterclayton from talking to @runcom, I think the problem is that HostConfig is part of image creation but not running, or something like that. I can reproduce the problem with imagebuilder on rawhide, so will see if I can fix it. |
@smarterclayton @jawnsy the HostConfig must be set at container create (docker create) as opposed to set it at container start (docker start). This has been a deprecated feature introduced in docker 1.12.x. Let me know if you need any other help on this. |
Just adding context... From the release notes: |
As discussed on IRC with @jawnsy and @mrunalp we can do the following:
We can probably reuse the same image that we'll be launching since it's guaranteed to be local and we won't be starting the container, just copying into it. |
Added a PR, please try it out and see if it works for you (can't get docker-latest running currently because of an older system) |
@smarterclayton Thanks for fixing this! docker engine information
Built the imagebuilder using:
Manually built the origin/openvswitch image:
Using the embedded imagebuilder (which doesn't include this change), reproducing the problem:
So this change appears to have fixed it 😄 👍 🎉 |
Unfortunately, the conformance tests are failing with 1.12. This requires further investigation, though at least it seems like a step in the right direction.
|
@smarterclayton ping I'm still seeing this issue with
|
oc ex dockerbuild is deprecated (I even thought we removed it in 1.5, but
guess that was 1.6). Use openshift/imagebuilder directly.
…On Thu, Jun 8, 2017 at 8:29 AM, Adam Miller ***@***.***> wrote:
@smarterclayton <https://github.com/smarterclayton> ping
I'm still seeing this issue with oc cluster up with origin:v1.5.0 docker
image.
$ oc cluster up
-- Checking OpenShift client ... OK
-- Checking Docker client ... OK
-- Checking Docker version ... OK
-- Checking for existing OpenShift container ... OK
-- Checking for openshift/origin:v1.5.0 image ... OK
-- Checking Docker daemon configuration ... OK
-- Checking for available ports ... OK
-- Checking type of volume mount ...
Using nsenter mounter for OpenShift volumes
-- Creating host directories ... OK
-- Finding server IP ...
Using 192.168.122.50 as the server IP
-- Starting OpenShift container ...
Creating initial OpenShift configuration
Starting OpenShift using container 'origin'
Waiting for API server to start listening
OpenShift server started
-- Adding default OAuthClient redirect URIs ... OK
-- Installing registry ... OK
-- Installing router ... OK
-- Importing image streams ... OK
-- Importing templates ... OK
-- Login to server ... OK
-- Creating initial project "myproject" ... OK
-- Removing temporary directory ... OK
-- Checking container networking ... OK
-- Server Information ...
OpenShift server started.
The server is accessible via web console at:
https://192.168.122.50:8443
You are logged in as:
User: developer
Password: developer
To login as administrator:
oc login -u system:admin
$ oc login -u system:admin
Logged into "https://192.168.122.50:8443" as "system:admin" using existing credentials.
You have access to the following projects and can switch between them with 'oc project <projectname>':
default
kube-system
* myproject
openshift
openshift-infra
Using project "myproject".
$ oc ex dockerbuild buildroot/ buildroot:latest
--> FROM centos:7
error: unable to start build container: API error (400): {"message":"starting container with HostConfig was deprecated since v1.10 and removed in v1.12"}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_pyFwAXtghDhBl4gieuJoY9QiNYTEks5sB-kngaJpZM4JoapV>
.
|
On a machine with docker v1.12 it throws above error error, but works fine on docker v1.10.3
running:
dockerfile:
docker version
The text was updated successfully, but these errors were encountered: