Comments (1)
For those who want to add this meanwhile we wait
sudo nano /etc/docker/daemon.json
{
"ipv6": true,
"fixed-cidr-v6": "fd00::/64",
"experimental": true,
"ip6tables": true,
"default-address-pools": [
{ "base": "172.17.0.0/16", "size": 16 },
{ "base": "172.18.0.0/16", "size": 16 },
{ "base": "172.19.0.0/16", "size": 16 },
{ "base": "172.20.0.0/14", "size": 16 },
{ "base": "172.24.0.0/14", "size": 16 },
{ "base": "172.28.0.0/14", "size": 16 },
{ "base": "192.168.0.0/16", "size": 20 },
{ "base": "fd00::/104", "size": 112 }
]
}
nano ~/.docker/compose/docker-compose.override.yml
networks:
default:
name: compose_default
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1
- subnet: fd01::/64
gateway: fd01::1
ds -c down
sudo reboot
ds -c down
ds -c p
ds -c up
These commands, in this order should do the trick.
The reason why you want to reboot is because the network might still be in use and not fully shutdown, after the reboot is done make sure the compose_default network is down with ds -c down and then ds -c p to prune all the containers including the network.
Rebuild everything and bring it back up again with the ds -c up command.
Add the following to the container you want ipv6 to be working for.
This goes into ~/.docker/compose/docker-compose.override.yml file.
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.eth0.proxy_ndp=1
i.e (full copy off my gluetun container with network added)
services:
gluetun:
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- ${QBITTORRENT_PORT_51413}:51413
- ${QBITTORRENT_PORT_51413}:51413/udp
- ${QBITTORRENT_PORT_6881}:6881
- ${QBITTORRENT_PORT_6881}:6881/udp
- ${QBITTORRENT_PORT_8080}:8080
- ${AUTOBRR_PORT_7474}:7474
environment:
- VPN_SERVICE_PROVIDER=custom
- VPN_TYPE=wireguard
- OPENVPN_USER=username
- OPENVPN_PASSWORD=password
- OPENVPN_CUSTOM_CONFIG=/config/wg0.conf
- DOT=on
- BLOCK_ADS=on
- BLOCK_MALICIOUS=on
- BLOCK_SURVEILLANCE=on
- VPN_ENDPOINT_IP=94.254.51.197
- VPN_ENDPOINT_PORT=48575
- WIREGUARD_PUBLIC_KEY=public_hash_key
- WIREGUARD_PRIVATE_KEY=private_hash_key
- WIREGUARD_PRESHARED_KEY=
- WIREGUARD_ADDRESSES=10.0.66.115/24,fdab:1337:1337:66::115/64
- WIREGUARD_ALLOWED_IPS=0.0.0.0/0,::/0
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.eth0.proxy_ndp=1
networks:
default:
name: compose_default
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1
- subnet: fd01::/64
gateway: fd01::1
from dockstarter.
Related Issues (20)
- [Application Request] Kapowarr HOT 3
- [BUG] Rootless docker requires changes to /var/run/docker.sock binding HOT 6
- [BUG] Apprise - Error response from daemon: invalid reference format HOT 1
- Documentation per App - add port/url HOT 1
- Feature request: Include Tandoor Recipes HOT 1
- [Application Request] Navidrome HOT 1
- [Application Request] Kavita HOT 1
- [BUG] Containers installed via override don't inherit system time/timezone HOT 3
- [BUG] calibre-web installs as calibreweb in dockstarter, this breaks swag. HOT 1
- [Application Request] Speedtest Tracker HOT 1
- Migrate from cr.hotio.dev to ghcr.io
- [BUG] Install Broke Linux Mint HOT 2
- [Feature Request] Ability to install in CoreOS HOT 2
- [Application Request] Real-Debrid Client Proxy HOT 1
- [BUG] Unifi Controller image was deprecated by linuxserver.io HOT 1
- Mosquitto docker restarts continuously HOT 1
- Komga container port - 25600 HOT 2
- [BUG] `version` is obsolete warning for two files
- Array Items must be unique
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockstarter.