Linux/Docker/Networking

From Wiki
< Linux‎ | Docker
Revision as of 20:02, 15 November 2023 by Marcluer (talk | contribs)
  • 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