Difference between revisions of "Docker"

From Interaction Station Wiki
Jump to navigation Jump to search
Line 34: Line 34:
  
  
'''Docker - Selecting the large capacity partition'''
+
'''FSTab'''
*sudo nano /etc/systemd/system/docker.service.d
+
*
 +
'''Give permissions to new MachineLearning partition'''
 +
*sudo chmod -R a+rwx /media/MachineLearning/
 +
 
 +
 
 +
'''Change Docker root dir using systemd'''
 +
*systemctl status docker.service
 +
*sudo nano /etc/default/docker
 +
*Edit ExecStart line to look like this ExecStart =/usr/bin/dockerd -g /media/MachineLearning/docker -H fd://
 +
*systemctl daemon-reload
 +
*systemctl restart docker
 +
*docker info - verify the root dir has updated
  
 
'''Docker - clean up all the volumes'''
 
'''Docker - clean up all the volumes'''

Revision as of 15:52, 24 July 2018

ML Docker Image installed on the Interaction Station ML computers:
Deepo. It includes:

  • cudnn
  • theano
  • tensorflow
  • sonnet
  • pytorch
  • keras
  • lasagne
  • mxnet
  • cntk
  • chainer
  • caffe
  • caffe2
  • torch

docker run -it ufoym/deepo:gpu bash Installing Docker CE on Ubuntu 16.04:

Installing Deepo:


UUID of a partition

  • sudo blkid


FSTab

Give permissions to new MachineLearning partition

  • sudo chmod -R a+rwx /media/MachineLearning/


Change Docker root dir using systemd

  • systemctl status docker.service
  • sudo nano /etc/default/docker
  • Edit ExecStart line to look like this ExecStart =/usr/bin/dockerd -g /media/MachineLearning/docker -H fd://
  • systemctl daemon-reload
  • systemctl restart docker
  • docker info - verify the root dir has updated

Docker - clean up all the volumes

  • docker system prune -a -f --volumes

NTFS fstab wizard:

  • sudo apt-get install ntfs-config
  • sudo ntfs-config

Format large capacity HD with fs ExFat for having access to it from Ubuntu:

  • On Windows 10
  • cmd
  • diskpart
  • select disk '#' (where # is the number of the target drive)
  • list part
  • select part # (where # is the number of the partition)
  • format fs=exfat QUICK