Closed namnoit closed 3 years ago
With option --sudouser
x11docker prints a message including the password:
x11docker WARNING: Option --sudouser severly reduces container security.
Container gains additional capabilities to allow sudo and su.
If an application breaks out of container, it can harm your system
in many ways without you noticing. Password: x11docker
x11docker --help
also shows the password:
--sudouser Allow su and sudo for container user. Use with care,
severe reduction of default x11docker security!
Password: x11docker
So the password is x11docker
.
It still Permission denied, but I found the solution that place Hadoop folder in ~/ folder instead of / folder. But I can't build it with Dockerfile
Please open a new ticket for a new issue. Please describe there in detail what the problem is.
Hi guy,
I'm using an image based on x11docker/deepin to work with hadoop:
x11docker --desktop --init=systemd --home --sudouser --hostnet --cap-default -- --cap-add=IPC_LOCK --security-opt seccomp=unconfined -- myimage
When I start hadoop, it require root@0.0.0.0's password. I don't know this password. If I follow this, it still require root's password. If I change root password using
sudo passwd root
, and type this password when required, I gotWhen I start x11docker with --user=root, it works fine, but I was unable to start chrome or firefox with this error:
Even if I can use chrome/firefox, I think it isn't a good idea when start docker as root.
Thank you.