-
Notifications
You must be signed in to change notification settings - Fork 379
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
How can I use the -v to mapping a device with x11docker? #58
Comments
You can use docker args/params with the following syntax:
For example:
See https://github.com/mviereck/x11docker#terminal-usage BTW, @mviereck is there any possibility to get rid of double quotes around
|
It works successfully.Thanks very much!!! |
@wanhongbo For mounting a volume at the same location with r/w access, you can also use x11docker option Though, devices should rather be declared with docker run option
or
It is possible if the arguments do not have a whitespace
Fails:
The issue is to divide between docker run options and imagename+command+args.
This would be an issue if the image command contains
Thoughts? |
Knowing this is enough for me, as it allows:
I'd be ok just adding this to the documentation, even if it is only a side note or a hint.
I think that this would not solve my initial question. Apart from the possible conflict you mention, it would still require the user to remove the additional What I had thought was parsing the docker options explicitly in order to detect the image name. But I think that the current implementation is easier. Since it is compatible already, I don't think it is worth making it more complicated. |
The latest update introduces a new syntax for custom
Old variants with
No, docker CLI accepts |
@mviereck is |
It should be valid with and without On first occurence of This part correctly parses DOCKER_RUN_OPTIONS (
This should return
Edit: Fixed it without
|
I saw that you solved without $ echo "aaa -- bbb -- ccc" | sed -e 's/^[^-]* --//g'
bbb -- ccc
$ echo "aaa -- bbb -- ccc" | sed -e 's/^[^-]* --\s*//g'
bbb -- ccc |
I would prefer to solve it with I tried your code examples with more complex strings:
It does not divide between Can you do some sed magic that can handle this? |
I could make it work in https://regexr.com/. If you put
will produce this output in 'Replace' mode:
But I could not reproduce it in the bash (neither cygwin nor MSYS). |
I've asked in a forum and got this one, works quite well: |
The snippet above fails for more
I got some more possible code snippets. Now x11docker uses:
|
When use docker ,I use the "-v /dev/kvm:/dev/kvm" to enable the kvm feature in the conatiner,but use x11docker,threre is no specified paramters,Could you help me?thanks
The text was updated successfully, but these errors were encountered: