-
Notifications
You must be signed in to change notification settings - Fork 377
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
Quoted image command arguments are not parsed accordingly #112
Comments
Two bugs come together here, one in x11docker and one in x11docker/xfce image. 8d30aa4 fixes the bug in x11docker. The quotes around Image Meanwhile you can test e.g.
The
Note that |
I pulled the latest master and I tried: # ./x11docker -ti -- x11docker/fvwm sh -c "ls -la ; pwd ; sh"
...
Image 'sh' not found locally.
Do you want to pull it from docker hub? [Y|n]
(Will wait up to 60s for a response, otherwise assuming no)y
/c/Users/eine/x11docker/cache/sh-42d07a/dockerrc: line 123: notify-send: command not found
Using default tag: latest
x11docker note: Pulling image sh from docker hub
Error response from daemon: pull access denied for sh, repository does not exist or may require 'docker login'
x11docker ERROR: Did not find image sh.
Please build image first or pull it from docker hub with:
docker pull sh
or run x11docker with option --pull=yes
Type 'x11docker --help' for usage information
Debug options: '--verbose' (full log) or '--debug' (log excerpt).
Logfile will be: /c/Users/eine/x11docker/cache/x11docker.log
Please report issues at https://github.com/mviereck/x11docker
./x11docker: line 448: /c/Users/eine/x11docker/cache/sh-42d07a/message.log: No such file or directory
./x11docker: line 448: /c/Users/eine/x11docker/cache/sh-42d07a/message.log: No such file or directory
./x11docker: line 448: /c/Users/eine/x11docker/cache/sh-42d07a/message.log: No such file or directory
./x11docker: line 448: /c/Users/eine/x11docker/cache/sh-42d07a/message.log: No such file or directory
I'll try with other images meanwhile.
I tried, but it fails as shown above. I think that this is related to the fix, rather than to the image. The same happens with
I always forget about it when I don't put docker run options. Thanks for the remainder. |
Stupid me, I should have tested without |
It works great now! I believe we can close this too. |
I am trying to execute
winpty docker run --rm -it x11docker/xfce bash -c "ls && pwd"
with x11docker../x11docker -i -t x11docker/xfce bash
: works, but it not what I want../x11docker -i -t x11docker/xfce ls
: does not show the output ofls
../x11docker -i -t x11docker/xfce ls && pwd
: the output from x11docker is shown and thenpwd
is executed in the host. The output ofls
is not shown../x11docker -i -t x11docker/xfce bash -c "ls && pwd"
:-c
is considered to be the option--clipboard
of x11docker, so a warning is shown:./x11docker -i -t x11docker/xfce "ls && bash"
: as used in Container applications running in Browser (without X server on the host) #110,ls
is not executed at first, but a bash is provided. After exiting,ls
is executed, which shows nothing.However, in neither case is a command prompt provided after. The container exists instead. This is different from the results reported in #110.
./x11docker -i -t x11docker/xfce bash "ls && bash"
: as in the previous case,ls
is not executed at first, but a bash is provided. After exiting,ls
is executed, but it fails now../x11docker -i -t x11docker/xfce bash "ls && pwd && bash"
: same as the previous case../x11docker -i -t x11docker/xfce bash "ls; pwd; bash"
: same as the previous case../x11docker -i -t x11docker/xfce bash -c "ls && bash"
: same as the case without-c
, but with the note about--clipboard
.The text was updated successfully, but these errors were encountered: