-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Same args with docker run command, but inconsistent behavior #3135
Comments
with docker inspect I found out, that the entrypoint differs and fixed it. But still the volumes list is not doing same the -v option does. |
At a quick glance, your Python invocation appears to be using shell/environment variables, e.g. Beyond that, there's not really much to go on here or indication that this is a bug in the library. If you can create a repro case with steps, feel free to open a new issue. |
The $() is consumed and replaced by a custom parser: |
I docker inspect and have two different containers, respecting the mount options: argument: and -v option with same content dont do same. Again its visible with docker inspect: |
docker-py: docker run |
this:
and this:
docker run --user $(id -u:exp):$(id -g:exp) -dt --cap-add=SYS_PTRACE -e PULSE_SERVER=unix:/tmp/pulseaudio.socket -e PULSE_COOKIE=/tmp/pulseaudio.cookie -v /tmp/pulseaudio.socket:/tmp/pulseaudio.socket -v /tmp/pulseaudio.client.conf:/etc/pulse/client.conf -v $(HOME_PATH):/home/docker -v $(CONAN_DATA_PATH):/opt/conan-user/.conan/data -v $(CONAN_DATABASE_FILE_PATH):/opt/conan-user/.conan/.conan.db -v /media/sf_C_DRIVE:/media/sf_C_DRIVE -e LM_LICENSE_FILE=1717@xxx -e MGLS_LICENSE_FILE=1717@xxx -e DISPLAY=$(DISPLAY:env) -e TERM=$(TERM:env) --network=host -e QT_X11_NO_MITSHM=1 -v /tmp/.X11-unix:/tmp/.X11-unix --name=$(CONTAINERNAME) --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --workdir=/home/docker/$(realpath --relative-to=$HOME ${pwd:exp}:exp) $(DOCKER_IMAGE) bash
are not doing the same. because cmake process inside container throws different errors.
The text was updated successfully, but these errors were encountered: