docker / docker/docker-py

multiple images were pulled by one command

Open
#2,231 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug level/dockerclient
Dominant language
Python
Stars
7.2k
Forks
1.7k
Avg merge
13d 8h
Merged PRs (30d)
2

Description

Hello

I referred this page Docker SDK for Python.
I execute these sample command, but I got many images by one command.

python3
Python 3.7.1 (default, Nov 28 2018, 11:51:47) 
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import docker
>>> client = docker.from_env()
>>> client.containers.run("ubuntu", "echo hello world")

after 1minutes, I got 4 ubuntu images

ubuntu              12.04               5b117edd0b76        21 months ago       104MB
ubuntu              12.04.5             5b117edd0b76        21 months ago       104MB
ubuntu              12.10               3e314f95dcac        4 years ago         172MB
ubuntu              10.04               e21dbcc7c9de        4 years ago         183MB

I am using macOS 10.14.2, Docker Desktop CE Version 2.0.0.2 (30215)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the documented Python example, client.containers.run("ubuntu", "echo hello world"), in the reported Docker Desktop environment and inspect the resulting image tags. Read the Docker SDK for Python documentation and the container-run and image-pull behavior; done means determining whether the multiple images are expected and documenting the cause or a concrete change needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.