Project

General

Profile

Bug #8409

Failure when creating a container with an image not in the host

Added by Daniel Lobato Garcia over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

If the compute resource docker host does not have the image, creation will fail, fog will return a 404.
The images should be pulled from the registry on creation asynchronously, and display progress like the orchestration progress bar displayed during host creation.


Related issues

Blocks Katello - Tracker #7125: Docker Content SupportReady For Testing

Associated revisions

Revision b747db40 (diff)
Added by Partha Aji over 6 years ago

Refs #8409 - Partially addressing pull before create container

Inital code to do a pull of an image before creating a container.
Note likely this part is going to change once we add foreman tasks but
this is the start point.

Revision b747db40 (diff)
Added by Partha Aji over 6 years ago

Refs #8409 - Partially addressing pull before create container

Inital code to do a pull of an image before creating a container.
Note likely this part is going to change once we add foreman tasks but
this is the start point.

Revision 16234b27 (diff)
Added by Daniel Lobato Garcia over 6 years ago

Fixes #8409 - Pull docker image asynchronously

Revision 16234b27 (diff)
Added by Daniel Lobato Garcia over 6 years ago

Fixes #8409 - Pull docker image asynchronously

History

#1 Updated by Partha Aji over 6 years ago

#2 Updated by Partha Aji over 6 years ago

Basically foreman-docker does not do a docker pull before trying to create a container with the pulled image. We need to add something that looks like
""
::Docker::Image.create({:fromImage => "registry:5000/<repo>", :tag => "latest"} )
""
before creating container

#3 Updated by Daniel Lobato Garcia over 6 years ago

  • Priority changed from Normal to High

#4 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-docker/pull/65 added
  • Pull request deleted ()

#5 Updated by Daniel Lobato Garcia over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Dominic Cleal over 6 years ago

  • Status changed from Closed to Ready For Testing

#7 Updated by David Davis over 6 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF