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

docker image for latest tag is not multiarch #3731

Closed
frederikhs opened this issue Jun 14, 2024 · 5 comments
Closed

docker image for latest tag is not multiarch #3731

frederikhs opened this issue Jun 14, 2024 · 5 comments
Assignees

Comments

@frederikhs
Copy link

I expect the latest tag to be available for both arm64 and amd64, but it seems that it is not.

The nightly image is published for both arm64 and amd64

$ docker manifest inspect getsentry/relay:nightly
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.index.v1+json",
   "manifests": [
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 2199,
         "digest": "sha256:609c83eca1fb8be6557a739ff70db461426b04cabb0c0ee7bfdb0c5af813bcd3",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 2199,
         "digest": "sha256:b92220f69d0f536faa16863dcf482fe2f09a0b40e1857c1a3c4b6c0ce6300c65",
         "platform": {
            "architecture": "arm64",
            "os": "linux"
         }
      },
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 566,
         "digest": "sha256:6c8a7ec521ba624682e6a96428134d1fd7d132c869fe081eadde80833d00f2f8",
         "platform": {
            "architecture": "unknown",
            "os": "unknown"
         }
      },
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 566,
         "digest": "sha256:b57637e0611ee5a6e21d90d3839f602946f378feebddd0ed1da4204a23eca218",
         "platform": {
            "architecture": "unknown",
            "os": "unknown"
         }
      }
   ]
}

But the latest tag i not

$ docker manifest inspect getsentry/relay:latest
{
	"schemaVersion": 2,
	"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
	"config": {
		"mediaType": "application/vnd.docker.container.image.v1+json",
		"size": 3974,
		"digest": "sha256:2a084e2063f981e943752b18c85c389bb58b18949ce7b6283a549e93a4d92e97"
	},
	"layers": [
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 29150411,
			"digest": "sha256:09f376ebb190216b0459f470e71bec7b5dfa611d66bf008492b40dcc5f1d8eae"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 6478975,
			"digest": "sha256:e6927e1ab4ddcd1fe0fd0a821c4ae86c0077801821b3d51275dd4a255276c14e"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 1105,
			"digest": "sha256:6f5533d8532eba87bc1a0c4e18986d7ae7927108cc5d8bc7c9971567329bcd7e"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 140,
			"digest": "sha256:505d4c397c58ed3d64fa4c967807748f160e7428faa7f8e5f710a5081fe7f288"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 32,
			"digest": "sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 18745320,
			"digest": "sha256:3539347bdcd8f71cfcc59363ec3aed19790a326c658c2b523c4f17553e4a6354"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 18745318,
			"digest": "sha256:e222b43982bae6e2b347f6a2e7820615652250b30833ec65bdb54c1483253efe"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 126625967,
			"digest": "sha256:5124023f5bcca5129c0a57b1593df72957bfff68ca42668f3a3a96e5245e3ce1"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 14447513,
			"digest": "sha256:15cb08d626fd737a73c31009112f3ac948d312cc207945df278941024de9a953"
		},
		{
			"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
			"size": 961,
			"digest": "sha256:4e8271d255b2ef8538f37ae109b0ed43e4fcd1a86bb9dc08e5f791dd6f824b46"
		}
	]
}
@Dav1dde
Copy link
Member

Dav1dde commented Jun 14, 2024

Mh, that's because we don't publish a latest tag (-> it is outdated), I need to find when we stopped publishing latest.

@Dav1dde
Copy link
Member

Dav1dde commented Jun 14, 2024

Okay, seems like latest is pushed with the self hosted release, which does not push a multiarch image.

@Dav1dde
Copy link
Member

Dav1dde commented Jun 14, 2024

Craft doesn't seem to handle multi arch images ... Opened an issue there.

@Dav1dde Dav1dde removed their assignment Jun 14, 2024
@frederikhs frederikhs changed the title docker image for latest tag i not multiarch docker image for latest tag is not multiarch Jun 15, 2024
@Dav1dde Dav1dde self-assigned this Sep 20, 2024
@Dav1dde
Copy link
Member

Dav1dde commented Sep 20, 2024

Craft PR which should make this work: getsentry/craft#556

@Dav1dde
Copy link
Member

Dav1dde commented Sep 26, 2024

Craft 2.0.0 released with support for copying multi arch images, next release should have the multi arch image pushed 🙏 .

@Dav1dde Dav1dde closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants