fussybeaver / bollard

Docker daemon API in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing 'pull' method in Docker

ClementNerma opened this issue · comments

Hi!

It seems like the pull method is missing from Docker (maybe it should be named pull_image?)

Docker exposes a pull command which needs to be used when using the create_container method with an image that doesn't exist locally.

According to Docker's API documentation, the create_image method is the official and only way to pull an image. As unintuitive as it is, providing only from_image and nothing else will indeed only trigger a pull.