-
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
docker-for-win: bug introduced between v5.2.0 and v5.3.0 #102
Comments
At the first glance it seems x11docker does not recognize that it runs on Windows and misconfigures itself. I'll look at this. |
I've fixed a bug that already explains the entire fail. I did no test run in Windows VM yet, but maybe it already works now. |
You are right. It is fixed now. Thanks! |
@1138-4eb
should give:
Normally x11docker uses init system
|
Sure! It is correct: # docker run --init --rm alpine pstree
init---pstree
This is quite likely. For example, project umarcor/qus provides a script to setup binfmt to use QEMU in order to allow transparent execution of foreign architectures in docker containers. The script does not work on Windows, because it tries to talk to a kernel that does not exist. However, if the script is executed inside a container, it works seamlessly, as the changes are applied to the VM.
That'd be great. According to the comment above, I think that, as a rule of thumb, you can run analysis stages of x11docker inside a dummy docker container, instead of doing it on the host only. This will allow to properly detect the environment that will host other containers you start. This feature might be useful in multiple contexts:
|
@1138-4eb Thank you for testing! The latest commit in master uses docker run option
x11docker already does a few checks before it starts the desired container in
Are these possible configurations of docker daemon instead of using run option |
Isn't it possible to request the authorization before (and retain it) or either ask for it twice? The user will need to provide it anyway in order to start a container, isn't it?
Yes. Precisely, I found about it because kata-runtime was set up as default in a machine I used. ATM, See https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file. If {
"default-runtime": "runc"
} Custom example for {
"default-runtime": "runc",
"runtimes": {
"kata-runtime": {
"path": "/snap/kata-containers/current/usr/bin/kata-runtime",
"runtimeArgs": [
"--kata-config /etc/kata/configuration.toml"
]
}
}
} This is also explained at https://docs.nvidia.com/dgx/nvidia-container-runtime-upgrade/index.html#using-nv-container-runtime for Nonetheless, you can retrieve this info with # docker info
...
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: kata-runtime runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
... |
Let's discuss
There is no good way. I would not ask twice, it is already annoying to type the password once. |
As commented in #92 (comment), with
v5.2.0
everything works OK on Windows 10 with docker 18.09.1 and MSYS2. But withv5.3.0
nothing works: no X server is started and no container seems to be created.The problem is introduced in d773072.
The annoyance to triage this issue is that the
x11docker.log
file is empty.@mviereck, please, let me know if I can do any further tests to help locate the source.
The text was updated successfully, but these errors were encountered: