-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unable to use salesforce/cli docker slim image #2613
Comments
Hello @carlosabella 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Interesting, we have not changed in that Dockerfile for a long time. Are you seeing this on any other Docker-slim versions? The "verify" step for |
Thanks for answering @iowillhoit . I have just retry this (just in case): Certainly I can see the "verify" step passes. And the command: java --version works perfectly. Any further idea? Thanks for helping |
@cristiand391 Thanks for the help. `#!/usr/bin/env bash get_script_dir () { While $SOURCE is a symlink, resolve itwhile [ -h "$SOURCE" ]; do What the command is showing as output is precisely what is in the last line of the code. But I can't understand why the execution of the command is getting to that line. Anyone can help here? Thanks a lot. |
Hi again @iowillhoit @cristiand391, The problem was not in the image or the sf cli, the problem was in docker engine in MAC. There is a bug in Docker engine for mac. There are some issues with the "Virtualization Framework". I had it enabled by default. I had to change the file sharing implementation for containers and uncheck the Virtualization Framework. After that, it worked perfectly. Here is the issue in docker: docker/for-mac#6824 Thank you very much for the help and sorry for the inconvenience due to it wasn't an "sf cli" problem. You can close the issue. |
Summary
I am trying to use the slim docker image from docker hub (2.23.4-slim)
And when I execute simply: sf -v
I get this error: /usr/local/sf/bin/sf: line 45: 21 Segmentation fault "$NODE" "$DIR/run" "$@"
I can't use it in my daily work.
Steps To Reproduce
Having docker engine installed in Mac OS Sonoma 14.2
docker pull salesforce/cli:2.23.4-slim
docker run --name salesforce -it salesforce/cli:2.23.4-slim
In the container terminal
root@0dcf76c916aa:/#
Write sf -v
Expected result
@salesforce/cli/2.21.8 darwin-x64 node-v20.10.0
Actual result
/usr/local/sf/bin/sf: line 45: 21 Segmentation fault "$NODE" "$DIR/run" "$@"
System Information
I am using Mac OS Sonoma 14.2. Terminal is zsh
This does not apply because I can't install the cli in the docker image
Additional information
The text was updated successfully, but these errors were encountered: