Ask Your Question
0

Invalid container format docker for image

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

fhussain gravatar image

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

Hi,

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:

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

 </body>
</html> (HTTP 400)

Please help me resolve the issue.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

Hi,

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

https://wiki.openstack.org/wiki/Docker#Configure_an_existing_OpenStack_installation_to_enable_Docker

Regards

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 496 times

Last updated: Sep 18 '15