Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi platform share same tag #4189

Closed
cole-dda opened this issue Apr 11, 2023 · 3 comments
Closed

multi platform share same tag #4189

cole-dda opened this issue Apr 11, 2023 · 3 comments

Comments

@cole-dda
Copy link

Description

different platform images can share same tag and not auto set to when change platform

#whether show platform column?
$docker image ls

screenshot_5826

Reproduce

$docker run -it --rm --platform linux/amd64 ubuntu:22.04 uname -m
$docker image ls

screenshot_5823

$docker run -it --rm --platform linux/arm64 ubuntu:22.04 uname -m
$docker image ls

screenshot_5824

#again run linux/amd64,again pull??
$docker run -it --rm --platform linux/amd64 ubuntu:22.04 uname -m

screenshot_5825

$docker image ls

screenshot_5827

Expected behavior

local registry keep multi platform image and not change tag,each time,change to other platform,always issue "unable find image xxx locally,waiting load metadata。

and when docker build or docker buildx build,change to other platform,load metadata waiting too long

docker version

Client:
 Cloud integration: v1.0.31
 Version:           20.10.24
 API version:       1.41
 Go version:        go1.19.7
 Git commit:        297e128
 Built:             Tue Apr  4 18:21:21 2023
 OS/Arch:           darwin/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.18.0 (104112)
 Engine:
  Version:          20.10.24
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.19.7
  Git commit:       5d6db84
  Built:            Tue Apr  4 18:18:42 2023
  OS/Arch:          linux/amd64
  Experimental:     true
 containerd:
  Version:          1.6.18
  GitCommit:        2456e983eb9e37e47538f59ea18f2043c9a73640
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.10.4)
  compose: Docker Compose (Docker Inc., v2.17.2)
  dev: Docker Dev Environments (Docker Inc., v0.1.0)
  extension: Manages Docker extensions (Docker Inc., v0.2.19)
  init: Creates Docker-related starter files for your project (Docker Inc., v0.1.0-beta.2)
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan: Docker Scan (Docker Inc., v0.25.0)
  scout: Command line tool for Docker Scout (Docker Inc., v0.9.0)

Additional Info

No response

@sam-thibault
Copy link
Contributor

It looks like you are using Docker Desktop. Have you enabled the beta feature "Use containerd for pulling and storing images"? This introduces multi-platform image support.

There is additional active work in this area. See here:

@sam-thibault
Copy link
Contributor

I will close this issue.

@sam-thibault sam-thibault closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2023
@cole-dda
Copy link
Author

when trun on the features, work ok,but when exec:

$docker run -it --rm --platform linux/amd64 ubuntu:22.04 uname -m
$docker run -it --rm --platform linux/arm64 ubuntu:22.04 uname -m
$docker image ls

image id equals?

screenshot_5846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants