Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.64 KB

README.md

File metadata and controls

63 lines (47 loc) · 1.64 KB

docker-ubuntu-mate-desktop-nomachine 6.2

Ubuntu Desktop 16.04 (MATE) Dockerfile with NoMachine 6.2 remote access

There are three tags available:

latest

pure ubuntu with firefox and basic linux tools

pycharm

latest+ pycharm IDE. To use pycharm, open command line:

pycharm

Or you can put it at desktop

sudo ln /usr/bin/pycharm ~/Desktop/pycharm

gpu

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.

How to run

Build

git clone https://github.com/rewreu/nomachine.git
cd docker-ubuntu-mate-desktop-nomachine
docker build -t=rewreu/nomachine .

Docker pull command

docker pull rewreu/nomachine

Enviroment vaiables

USER -> user for the nomachine login PASSWORD -> password for the nomachine login

Usage

docker run -d -p 4000:4000 --name desktop -e PASSWORD=password \
-e USER=user --cap-add=SYS_PTRACE rewreu/nomachine

Connect to the container

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)

Timezone issue

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.