Ask Your Question

Invalid container format docker for image

asked 2015-09-18 00:52:17 -0600

fhussain gravatar image

updated 2015-09-18 00:53:34 -0600


I have installed OpenStack Juno via devstack. I am following this link to create a docker container in openstack. docker pull cirros works fine. However, when I try to save a docker image to glance by doing this:

docker save cirros |glance image-create --name cirros --is-public true --container-format docker --disk-format raw

I get this error:

  <title>400 Bad Request</title>
  <h1>400 Bad Request</h1>
  Invalid container format 'docker' for image.<br /><br />

</html> (HTTP 400)

Please help me resolve the issue.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-18 02:31:23 -0600


Add support for docker container format at this line in glance-api.conf and restart the service.

container_formats = ami,ari,aki,bare,ovf,docker


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-09-18 00:52:17 -0600

Seen: 862 times

Last updated: Sep 18 '15