Kaixhin / dockerfiles

Compilation of Dockerfiles with automated builds enabled on the Docker Registry
https://hub.docker.com/u/kaixhin/
MIT License
505 stars 127 forks source link

VNC image local build error #36

Open bpinaya opened 7 years ago

bpinaya commented 7 years ago

Hey there, great images. I am having some issues building it locally.

Step 4/10 : ENV USER root
 ---> Running in 6b2c881d3107
 ---> 9c91f0c8818e
Removing intermediate container 6b2c881d3107
Step 5/10 : COPY password.txt .
 ---> 71f859bc9d2d
Removing intermediate container 7a7772cc3d2a
Step 6/10 : RUN cat password.txt password.txt | vncpasswd &&   rm password.txt
 ---> Running in 10ebdba5fef9
Using password file /root/.vnc/passwd
VNC directory /root/.vnc does not exist, creating.
Password: Warning: password truncated to the length of 8.
Verify:   Passwords do not match. Please try again.

Password: Password too short The command '/bin/sh -c cat password.txt password.txt | vncpasswd && rm password.txt' returned a non-zero code: 1` Tried setting up a longer password but didn't work.

Kaixhin commented 7 years ago

I just ran this and it worked fine. If you've been adjusting the password, can you please try again with the original password.txt (to make sure there are no extra invisible characters in the password)? If this does work then there must be an issue with the password that you have chosen - try a 8-character alphanumeric password to be safe.

ghost commented 6 years ago

adding a newline after the password fixed the issue for me

Kaixhin commented 6 years ago

@sgshawnblanchard Would you mind sending in a PR with the fix please (or just letting me know what the exact changes are)?