Skip to content
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

Nothing is launched #3

Open
anthony-o opened this issue Oct 8, 2014 · 3 comments
Open

Nothing is launched #3

anthony-o opened this issue Oct 8, 2014 · 3 comments

Comments

@anthony-o
Copy link

I'm using the command "sudo docker run -it --rm -p 5901:5901 --env USER=root dockerfile/ubuntu-desktop vncserver :1 -geometry 1280x800 -depth 24", then vncserver asks me to set a password, and after that, nothing happends.

user@Ubuntu:~$ sudo docker run -it --rm -p 5901:5901 --env USER=root dockerfile/ubuntu-desktop vncserver :1 -geometry 1280x800 -depth 24

You will require a password to access your desktops.

Password: 
Verify:   
Would you like to enter a view-only password (y/n)? n
xauth:  file /root/.Xauthority does not exist

New 'X' desktop is 027f87026dc4:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/027f87026dc4:1.log

user@Ubuntu:~$ sudo docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
user@Ubuntu:~$ 
@mjpowersjr
Copy link

I am having the same problem.

@mjpowersjr
Copy link

After further investigation, it appears that the following file needs to exist (it can be empty)

/root/.Xresources

After running 'touch ~/.Xresources', I was able to launch the vnc server. I also found that adding the -nocursor option provided better results.

docker run -it --rm -p 5901:5901 -e USER=root dockerfile/ubuntu-desktop vncserver :1 -geometry 1280x800 -depth 24 -nocursor

@kstenerud
Copy link

Adding /root/.Xresources doesn't work for me. It doesn't launch the Docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants