Linux/Docker/Networking: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
</pre> | </pre> | ||
* Create docker network | |||
<pre> | |||
docker network create wireguard | |||
docker network create --subnet 172.1.50.0/24 wireguard | |||
</pre> | |||
[[Category:Linux/Docker]] | [[Category:Linux/Docker]] | ||
[[Category:Linux]] | [[Category:Linux]] |
Revision as of 20:02, 15 November 2023
- List docker container with IPs
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'
- Create docker network
docker network create wireguard docker network create --subnet 172.1.50.0/24 wireguard