mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-10 18:47:45 +02:00
docker: added arch installation and non-root usage
This commit is contained in:
parent
9924356f89
commit
58b6f88109
@ -3,6 +3,18 @@
|
|||||||
Docker is a virtualization software that deploys docker containers.
|
Docker is a virtualization software that deploys docker containers.
|
||||||
Due to easy handling and reproducable environments it is a useful tool.
|
Due to easy handling and reproducable environments it is a useful tool.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
- Arch linux: run `pacman -S docker` to install docker
|
||||||
|
|
||||||
|
## Run Docker as non-root user
|
||||||
|
|
||||||
|
To run docker as a non-root user you need to add your user to the `docker` group.
|
||||||
|
To do this create the group docker if it doesn't exist `sudo groupadd docker`
|
||||||
|
and then add your user to the group using `sudo usermod -aG docker $USER`.
|
||||||
|
After that relog into your machine and you should be able to run
|
||||||
|
`docker run hello-world`.
|
||||||
|
|
||||||
## Enable Nvidia GPUs
|
## Enable Nvidia GPUs
|
||||||
|
|
||||||
To use Nvidia GPUs with docker you need to install the nvidia-cuda-toolkit.
|
To use Nvidia GPUs with docker you need to install the nvidia-cuda-toolkit.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user