linux:docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:docker [2023/11/14 00:07] – Wulf Rajek | linux:docker [2025/04/16 23:45] (current) – Wulf Rajek | ||
---|---|---|---|
Line 2: | Line 2: | ||
https:// | https:// | ||
+ | |||
+ | ===== Main install ===== | ||
+ | < | ||
+ | apt-get -y install curl unzip dialog | ||
+ | curl -fSSL get.docker.com | sh | ||
+ | </ | ||
+ | |||
+ | ===== Show logs ===== | ||
+ | |||
+ | < | ||
+ | docker logs --follow < | ||
+ | </ | ||
+ | |||
===== Build image ===== | ===== Build image ===== | ||
Line 103: | Line 116: | ||
docker tag current/ | docker tag current/ | ||
</ | </ | ||
+ | |||
+ | ===== cmd shell of container ===== | ||
+ | < | ||
+ | docker exec -it < | ||
+ | docker exec -it < | ||
+ | </ | ||
+ | |||
+ | ===== GPU hardware acceleration ===== | ||
+ | |||
+ | Make sure the relevant GPU drivers are installed on the base system, then pass through the device via docker compose. | ||
+ | Check devices are available, there should be a device per GPU starting at renderD128 for the first GPU: | ||
+ | < | ||
+ | ls -la /dev/dri | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | devices: | ||
+ | - / | ||
+ | </ | ||
+ | |||
+ | ===== docker ps short ===== | ||
+ | Short form of docker ps to only get the container names: | ||
+ | < | ||
+ | docker ps | sed ' | ||
+ | </ | ||
+ | |||
+ | ===== docker running out of network addresses ===== | ||
+ | |||
+ | Error response from daemon: all predefined address pools have been fully subnetted | ||
+ | |||
+ | <code json / | ||
+ | { | ||
+ | " | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
+ | < | ||
+ | docker restart | ||
+ | docker network prune | ||
+ | </ | ||
+ |
linux/docker.1699920443.txt.gz · Last modified: 2023/11/14 00:07 by Wulf Rajek