EDIT ALPINE DOCKER IMAGE WITH XFCE4 AND NOVNC AND EDIT ENTRY POINT

Description of your first forum.
Post Reply
admin
Site Admin
Posts: 22
Joined: Sat Jun 20, 2020 1:29 pm

EDIT ALPINE DOCKER IMAGE WITH XFCE4 AND NOVNC AND EDIT ENTRY POINT

Post by admin »

Alpine docker is the smallest docker within 5 mb size. If we add xfce4 docker desktop and novnc then we can access docker with gui and can install wine and other application alongwith it.
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" .
3. Once image is builded create container from it

Code: Select all

docker create -t -i -p 5900:5900 -p 6080:6080 --name alpine_novnc modified_novnc
I have removed CMD entry in image.
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

Post Reply