robbertkl / docker-ipv6nat

Extend Docker with IPv6 NAT, similar to IPv4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about Launching via Docker Compose in Ubuntu?

johntdavis84 opened this issue · comments

Hello.

I've only previously used IPv6nat on my Manjaro (Arch) systems, which made available the installable systemd service.

I'm trying to bring up the container on Ubuntu for the first time, and I can't tell if it worked or not.

Here's what it did:

/mnt/nvme/dockerfs/containers/ipv6nat$ sudo docker compose up
[+] Running 5/5
 ...
[+] Running 1/0
 ⠿ Container ipv6nat  Created                                                                                                                                                                                                                             0.1s
Attaching to ipv6nat

Here's what docker ps says:

CONTAINER ID   IMAGE               COMMAND                  CREATED              STATUS              PORTS     NAMES
97165b30bbfa   robbertkl/ipv6nat   "/docker-ipv6nat-com…"   About a minute ago   Up About a minute             ipv6nat

What's the best way to make sure it's actually working as intended, and that I don't need to also do the tweaking for router advertisements?

Here's the compose file:

$ cat docker-compose.yml 
version: '3.3'

services:
    ipv6n:
        container_name: ipv6nat
        cap_drop:
          - ALL
        cap_add:
          - NET_ADMIN
          - NET_RAW
          - SYS_MODULE
        network_mode: host
        restart: unless-stopped
        volumes:
            - '/var/run/docker.sock:/var/run/docker.sock:ro'
            - '/lib/modules:/lib/modules:ro'
        image: robbertkl/ipv6nat