Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

docker_options/base_image with docker-api v1.20.0 result in a 404 error #28

Closed
sjourdan opened this issue Mar 16, 2015 · 2 comments
Closed

Comments

@sjourdan
Copy link

Hi,

Quick issue here, with the docker-api gem v1.20 (which I believe is shipped with ChefDK 0.4.0) I'm somehow getting a 404 error with chef-provisioning-docker (0.5.2):

    ================================================================================
    Error executing action `create` on resource 'machine_image[web_server]'
    ================================================================================

    Docker::Error::NotFoundError
    ----------------------------
    Expected([200, 201, 202, 203, 204, 304]) <=> Actual(404 Not Found)

    Resource Declaration:
    ---------------------
    # In /home/sjourdan/dev/chef-repo/provisioning/webserver-docker.rb

      3: machine_image 'web_server' do
      4:   recipe 'apache'
      5: 
      6:   machine_options :docker_options => {
      7:       :base_image => {
      8:           :name => 'ubuntu',
      9:           :repository => 'ubuntu',
     10:           :tag => '14.04'
     11:       }
     12:   }
     13: end
     14: 

My current workaround is to simply rollback to the 1.18 version of docker-api, so the problem disappear.

@a13x212
Copy link

a13x212 commented Mar 17, 2015

I had the same issue. Upgrading to docker 1.5.0 fixed my issue.

Docker version 1.5.0, build a8a31ef

@sjourdan
Copy link
Author

You're right I was using docker 1.3 from CentOS/RHEL 7.0.
Upgrading Docker to 1.5 did the trick, thanks!

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

No branches or pull requests

2 participants