Difference between revisions of "Docker"

From Interaction Station Wiki
Jump to navigation Jump to search
Line 46: Line 46:
 
*systemctl daemon-reload
 
*systemctl daemon-reload
 
*systemctl restart docker
 
*systemctl restart docker
*docker info - verify the root dir has updated
+
*sudo docker info - verify the root dir has updated
  
 
'''Docker - clean up all the volumes'''
 
'''Docker - clean up all the volumes'''
*docker system prune -a -f --volumes
+
*sudo docker system prune -a -f --volumes
  
 
'''NTFS fstab wizard:'''
 
'''NTFS fstab wizard:'''

Revision as of 14: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
  • sudo docker info - verify the root dir has updated

Docker - clean up all the volumes

  • sudo 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