Ubuntu Desktop 16.04 (MATE) Dockerfile with NoMachine 6.2 remote access
There are three tags available:
pure ubuntu with firefox and basic linux tools
latest+ pycharm IDE. To use pycharm, open command line:
pycharm
Or you can put it at desktop
sudo ln /usr/bin/pycharm ~/Desktop/pycharm
To run this, need to use nvidia-docker instead of docker in usage. A lot of ML libaries(Tensorflow, pytorch, sklearn, xgboot, jupyterlab, ...) are installed.
git clone https://github.com/rewreu/nomachine.git
cd docker-ubuntu-mate-desktop-nomachine
docker build -t=rewreu/nomachine .
docker pull rewreu/nomachine
USER -> user for the nomachine login PASSWORD -> password for the nomachine login
docker run -d -p 4000:4000 --name desktop -e PASSWORD=password \
-e USER=user --cap-add=SYS_PTRACE rewreu/nomachine
Download the NoMachine client from: https://www.nomachine.com/download, install the client, create a new connection to your public ip, port 4000, NX protocol, use enviroment user and password for authentication (make sure to setup enviroment variables for that)
Docker always uses UTC 0.
To avoid it, you can use the following in Ubuntu:
docker run -d -p 4000:4000 --name desktop \
-e PASSWORD=password -v /etc/localtime:/etc/localtime:ro \
-e USER=user --cap-add=SYS_PTRACE rewreu/nomachine
For macbook, I couldn't figure out how to sovle the timezone issue. The path /etc/localtime in mac is a symbolic link.