There are many dockers in docker hub which has readymade solution but none of them are uptodate and doesnot have complete solution.
One of the popular docker file is: yangxuan8282/alpine-xfce4-novnc
You can download from docker hub it has beautiful wallpaper and looks like premier desktop.
The only problem is whenever you will update the OS with sudo apk update and sudo apk upgrade it will be finished.
Next time you will start container, container will crash.
There is no way to solve from existing build. It is not updated since last 4 years.
On detail searching i found the entrypoint to docker has problem, its calling run_novnc script which has confilct with update.
In order to solve the issue what i did is rebuilded docker file and removed CMD entry to run_novnc script.
then stetp by step debugging done and found python3 has conflict with earlier noVNC.
Updated noVNC and then entrypoint inserted. Then its working file.
Details procedure is as follows:
1. Create child dockerfile from original image
Code: Select all
FROM yangxuan8282/alpine-xfce4-novnc
ENTRYPOINT ["/bin/ping"]
CMD ["localhost"]
2. Docker build.
Code: Select all
docker build -t="modified_novnc" .
Code: Select all
docker create -t -i -p 5900:5900 -p 6080:6080 --name alpine_novnc modified_novnc
Now you can update or do any changes in container and then run "run_novnc" in terminal.
Your container with desktop will be accessible on http://<Host ip>:6080/
password: alpinelinux.
Thanks
Admin