Bug #8409
Failure when creating a container with an image not in the host
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
Associated revisions
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.
Fixes #8409 - Pull docker image asynchronously
Fixes #8409 - Pull docker image asynchronously
History
#1
Updated by Partha Aji over 8 years ago
- Blocks Tracker #7125: Docker Content Support added
#2
Updated by Partha Aji over 8 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 8 years ago
- Priority changed from Normal to High
#4
Updated by The Foreman Bot about 8 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 about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman-docker|16234b270677486ea197a0dca54b14ed981abfc5.
#6
Updated by Dominic Cleal about 8 years ago
- Status changed from Closed to Ready For Testing
Reverted in https://github.com/theforeman/foreman-docker/commit/e054355497e8e0dd4cbad25e0e735638fb9afef7 due to accidental merge.
#7
Updated by David Davis about 8 years ago
- Status changed from Ready For Testing to Closed
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.