
Clara AGX Developer Kit User Guide
3.
Restart the docker daemon:
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
4.
Add current USER to docker group
so docker command 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
5.
Verify
that you can run a hello world container
$ docker run hello-world
Move Docker Storage to m2 Partition
A complete installation of the Clara SDK leaves only about 10GB of storage remaining in the
root 32GB filesystem (/dev/mmcblk0p1). The remaining disk space is usually insufficient to
store Docker images, because the individual images can be several GB each. NVIDIA
recommends that the Docker daemon data directory be moved to a location on the new m2
partition. This can be done with the following steps:
1.
Create a new Docker data directory.
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 another directory name can be used if preferred:
$ sudo mkdir /media/m2/docker-data
2.
Configure the Docker Daemon.
Add the following data-root configuration option to
the /etc/docker/daemon.json file, pointing to the new data directory created above.
Create the /etc/docker/daemon.json file if it does not already exist.
{
"data-root": "/media/m2/docker-data"
}
When a configuration already exists in the daemon.json file, make sure to add a
comma to the preceding line before the data-root configuration, e.g.
{
...
"default-runtime": "nvidia",
"data-root": "/media/m2/docker-data"
}
3.
Restart the Docker Daemon.
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker