Setting Up Docker And Docker Storage On Ssd - Nvidia Clara Holoscan User Manual

Table of Contents

Advertisement

Clara Holoscan Developer Kit User Guide
4. Mount the partition. The /etc/fstab entry above will mount the partition
automatically at boot time. To instead mount the partition immediately without
rebooting, use the mount command (and df to verify the mount):
$ sudo mount –a
$ df -h /dev/nvme0n1
Filesystem
/dev/nvme0n1
5. Manage permission on SSD. Use the "chmod" command to manage file system access
permission. For example:
$ sudo chmod -R 777 /media/m2

Setting up Docker and Docker Storage on SSD

1. Install Docker if it has not been installed on your system:
$ sudo apt-get update
$ sudo apt-get install -y docker.io
2. Create a Docker data directory on the new m.2 SSD partition. This is where Docker will
store all of its data, including build cache and container images. These instructions use
the path /media/m2/docker-data, but you can use another directory name if
preferred.
$ sudo mkdir /media/m2/docker-data
3. Configure Docker by writing the following to /etc/docker/daemon.json:
{
"runtimes": {
"nvidia": {
}
},
"default-runtime": "nvidia",
"data-root": "/media/m2/docker-data"
}
4. Restart the Docker daemon:
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
5. Add the current user to the Docker group so Docker commands can run without sudo.
# Create the docker group.
$ sudo groupadd docker
# Add your user to the docker group.
$ sudo usermod -aG docker $USER
# Activate the changes to groups. Alternatively, reboot or re-login.
$ newgrp docker
Size
Used Avail Use% Mounted on
458G
73M
435G
"path": "/usr/bin/nvidia-container-runtime",
"runtimeArgs": []
1% /media/m2

Advertisement

Table of Contents
loading

Table of Contents