dockerfiles icon indicating copy to clipboard operation
dockerfiles copied to clipboard

VNC image local build error

Open bpinaya opened this issue 8 years ago • 3 comments

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.

bpinaya avatar Jun 10 '17 00:06 bpinaya

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.

Kaixhin avatar Jun 10 '17 21:06 Kaixhin

adding a newline after the password fixed the issue for me

ghost avatar Mar 19 '18 16:03 ghost

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

Kaixhin avatar Mar 19 '18 16:03 Kaixhin