Docker

Docker initialization
nvidia-docker run -it --mount type=bind,source=/common_space/tensorflow/,target=/common_space_docker/ -p 7777:22 -p 6006:6006 -p 6007:6007 -p 6008:6008 -p 6009:6009 -p 6010:6010 -p 6011:6011 -p 6012:6012 -p 6013:6013 -p 6014:6014 -p 6015:6015 --name tensorflow gcr.io/tensorflow/tensorflow:latest-gpu-py3 bash

ssh-server activation
apt update && apt install -y openssh-server mkdir /var/run/sshd echo 'root:123456' | chpasswd

The last command changes root password to XXXXXX. sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd echo "export VISIBLE=now" >> /etc/profile service ssh restart

packages installation
pip install --upgrade pip pip install --upgrade tflearn pip install --upgrade matplotlib pip3 install torch torchvision