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

google or gcr.io/google.com #356

Closed
padrepitufo opened this issue Jan 19, 2024 · 2 comments
Closed

google or gcr.io/google.com #356

padrepitufo opened this issue Jan 19, 2024 · 2 comments

Comments

@padrepitufo
Copy link

padrepitufo commented Jan 19, 2024

Noticing some differences in operation between running Image A (works) / Image B (crashes with confusing error)

Expectations

Both repositories would be the same image? Maybe, I misunderstand which one is official/authoritative??

Current State

Image A

docker run -it --rm gcr.io/google.com/cloudsdktool/google-cloud-cli:460.0.0-alpine gcloud version

and

Image B

docker run --platform linux/amd64 -it --rm google/cloud-sdk:460.0.0-alpine gcloud version

1 - of course the Image A doesn't require the --platform option, it just works™
2 - Image B always gives the error /bin/sh: line 3: syntax error: unexpected word (expecting ")")

Context

Corporate Owned/Managed MacBook Pro M2 (Apple Silicon)
Using Zscaler
Managed using Intelligent Hub
docker version

Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:04:20 2023
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.26.1 (131620)
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       311b9ff
  Built:            Thu Oct 26 09:08:15 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.25
  GitCommit:        d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
 runc:
  Version:          1.1.10
  GitCommit:        v1.1.10-0-g18a0cb0
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

tried with both VirtioFS and gRPC FUSE, both result in the same error

@padrepitufo
Copy link
Author

disabling "Use Rosetta for x86/amd64 emulation on Apple Silicon" fixes it. This can be closed.

@padrepitufo
Copy link
Author

a little confused here but I ran:

softwareupdate --install-rosetta --agree-to-license

and now it works with everything on...

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

No branches or pull requests

1 participant