r/docker • • 1d ago

DOCKER CLI VS GUI

0 Upvotes

Which one do you guys prefer?


r/docker • • 1d ago

Docker Asks me to Install Rosetta?

0 Upvotes

Hi, so the title is self explanatory, I'm new to Mac OS, i'm using Mac air m5, and when i installed docker, it pushed me to download rosetta 2, which i think is older version of mac os and current one is tahoe, when i researched about it. it says support for rosetta will end in 2027...

what shall i do? is it recommended to install rosetta? or shall i just use homebrew to install cli version of docker?


r/docker • • 1d ago

mongodb service gets killed when doing a docker stack deploy to another stack

4 Upvotes

i make remote deploys to my vps running docker swarm with the docker stack deploy command

i have multiple stacks for different applications deployed in my server, doing this, for some reason kills just the mongodb service; these are two different stacks, although they are connected to the same traefik network, that is the only thing they do share.

NAMEMODEIMAGEREPLICAS
xxx_dbreplicated0/1mongo:8.0.4

this is the my docker-stack file

notes:

  1. i use docker compose config before to pass the env vars and create a valid docker-stack.yaml file

  2. docker service update xxx_db fixes it, but i don't wanna be doing that always

  3. this just happens with the mongodb container, the other ones i have with postgres or nginx serving static sites are alright

services:
  db:
    image: mongo:8.0.4
    volumes:
      - mongodb_data:/data/db
      - ${PRODUCITON_HOME}/scripts/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
    command: ["mongod", "--bind_ip_all"]
    secrets:
      - db-root-user
      - db-root-password
    environment:
      MONGODB_INITDB_ROOT_PASSWORD_FILE: /run/secrets/db-root-password
      MONGODB_INITDB_ROOT_USERNAME_FILE: /run/secrets/db-root-user
      GLIBC_TUNABLES: glibc.pthread.rseq=0
    networks:
      - db_net
    healthcheck:
      test:
        - CMD
        - mongosh
        - "mongodb://localhost:27017/admin"
        - "--eval=db.runCommand({ping:1})"
      retries: 3
      timeout: 5s
  server:
    secrets:
      - db-password
    environment:
      DB_PASSWORD_FILE: /run/secrets/db-password
      POOL_MIN_CONNS: ${POOL_MIN_CONNS}
      POOL_MAX_CONNS: ${POOL_MAX_CONNS}
      POOL_MAX_CONN_LIFETIME: ${POOL_MAX_CONN_LIFETIME}
      POOL_MAX_CONN_IDLE_TIME: ${POOL_MAX_CONN_IDLE_TIME}
      APP_PORT: ${APP_PORT}
      TOKEN_SECRET: ${TOKEN_SECRET}
      TOKEN_AUDIENCE: ${TOKEN_AUDIENCE}
      TOKEN_ISSUER: ${TOKEN_ISSUER}
      ACCESS_TOKEN_DURATION: ${ACCESS_TOKEN_DURATION}
      REFRESH_TOKEN_DURATION: ${REFRESH_TOKEN_DURATION}
      ORIGINS: ${ORIGINS}
      MAIL_HOST: ${MAIL_HOST}
      MAIL_PORT: ${MAIL_PORT}
      MAIL_USERNAME: ${MAIL_USERNAME}
      MAIL_PASSWORD: ${MAIL_PASSWORD}
      MAIL_SENDER: ${MAIL_SENDER}
    working_dir: /oooooooooooooo
    image: jjjjjjjjjjjj/oooooooooooooo:${GIT_HASH}
    networks:
      - db_net
      - traefik_proxy
    deploy:
      update_config:
        order: start-first
      labels:
        - "traefik.enable=true"
        - "traefik.http.routers.api-xxxxx.rule=Host(`xxx-xxxxxx.yyyyyyyyyyy.com`)"
        - "traefik.http.services.api-xxxxx.loadbalancer.server.port=5001"
volumes:
  mongodb_data:
networks:
  db_net:
  traefik_proxy:
    external: true
secrets:
  db-root-password:
    file: ./secrets/mongo-initdb-root-password.secret
  db-root-user:
    file: ./secrets/mongo-initdb-root-username.secret
  db-password:
    file: ./secrets/db-password.secret
  db-user:
    file: ./secrets/db-user.secret

this are the relevant log info i found

{
  "t": {
    "$date": "2026-11-14T15:54:30.114+00:00"
  },
  "s": "I",
  "c": "NETWORK",
  "id": 22943,
  "ctx": "listener",
  "msg": "Connection accepted",
  "attr": {
    "remote": "127.0.0.1:35898",
    "uuid": {
      "uuid": {
        "$uuid": "34b5dd72-5a66-4eff-9007-2fc5434528ab"
      }
    },
    "connectionId": 1,
    "connectionCount": 1
  }
}
{
  "t": {
    "$date": "2026-11-14T15:54:30.211+00:00"
  },
  "s": "I",
  "c": "NETWORK",
  "id": 51800,
  "ctx": "conn1",
  "msg": "client metadata",
  "attr": {
    "remote": "127.0.0.1:35898",
    "client": "conn1",
    "negotiatedCompressors": [],
    "doc": {
      "application": {
        "name": "mongosh 2.3.8"
      },
      "driver": {
        "name": "nodejs|mongosh",
        "version": "6.12.0|2.3.8"
      },
      "platform": "Node.js v20.18.1, LE",
      "os": {
        "name": "linux",
        "architecture": "x64",
        "version": "3.10.0-327.22.2.el7.x86_64",
        "type": "Linux"
      },
      "env": {
        "container": {
          "runtime": "docker"
        }
      }
    }
  }
}
{
  "t": {
    "$date": "2026-11-14T15:54:31.398+00:00"
  },
  "s": "I",
  "c": "NETWORK",
  "id": 22944,
  "ctx": "conn1",
  "msg": "Connection ended",
  "attr": {
    "remote": "127.0.0.1:35898",
    "uuid": {
      "uuid": {
        "$uuid": "34b5dd72-5a66-4eff-9007-2fc5434528ab"
      }
    },
    "connectionId": 1,
    "connectionCount": 0
  }
}
{
  "t": {
    "$date": "2026-11-14T15:55:09.294+00:00"
  },
  "s": "I",
  "c": "CONTROL",
  "id": 23377,
  "ctx": "SignalHandler",
  "msg": "Received signal",
  "attr": {
    "signal": 15,
    "error": "Terminated"
  }
}
{
  "t": {
    "$date": "2026-11-14T15:55:09.294+00:00"
  },
  "s": "I",
  "c": "CONTROL",
  "id": 23378,
  "ctx": "SignalHandler",
  "msg": "Signal was sent by kill(2)",
  "attr": {
    "pid": 0,
    "uid": 0
  }
}
{
  "t": {
    "$date": "2026-11-14T15:55:09.294+00:00"
  },
  "s": "I",
  "c": "CONTROL",
  "id": 23381,
  "ctx": "SignalHandler",
  "msg": "will terminate after current cmd ends"
}

full logs:
https://pastebin.com/36Uqyrgq


r/docker • • 2d ago

Server is only accessible on host mode or when using container addresses

4 Upvotes

SOLVED, see here: https://www.reddit.com/r/docker/s/92gXpeXGTe. This post will self-destruct eventually.

Here is my docker-compose.yaml

name: tactics

services:
  server:
    container_name: server
    build:
      dockerfile: server.Dockerfile
    ports:
      - "8000:8000"
    networks:
      - backend

networks:
  backend:
    driver: bridge

and my server.Dockerfile

debian:bookworm-slim
ENV HOME=/root
ENV PATH="$PATH:$HOME/bin"
WORKDIR $HOME/bin
COPY Server.x86_64 Server.x86_64 ./
ENTRYPOINT ["/root/bin/Server.x86_64", "--headless", "--verbose"]

I create the Godot Server on a port, and create a Godot Client that connects to the same port.

If I use an address that refers directly to the container (the one shown by this https://stackoverflow.com/a/20686101) the connection is successful.

Or if I rewrite the compose to use host network mode, the connection is successful.

If I use any other address (0.0.0.0,, localhost, my public IP, my private IP), it times out.

Some suggestions have been to bind to 0.0.0.0, but I am not sure the effects of that or how it would be done in compose.

I am on an Ubuntu machine. I suppose I could also deploy to some cheap server farm. Any help is appreciated, including "don't worry about it and just use host / direct container address, here's why".

EDIT: btw I seemingly enabled br_netfilter as it was disabled, as suggested here: https://stackoverflow.com/a/60897412. Might be relevant. Didn't help though.


r/docker • • 2d ago

should i use env vars or docker swarm secrets for stuff that is kinda a secret but not really? like db names, user db names, ports, etc

7 Upvotes

im not 100% if those don't count as stuff worth to keep inside secrets


r/docker • • 2d ago

usb passthrough for esp32 on macos docker, anyone got it working?

3 Upvotes

so i recently moved from linux bazzite to an m2 macbook air and i've been trying to get my esp32 boards working inside docker devcontainers on vscode

the problem is macos can see my esp32-s3 just fine, esptool works and everything through /dev/cu.usbmodem but inside the devcontainer i can't access the usb at all

i use tool and script inside the container and i want them to be able to build, flash, read flash and monitor serial logs on multiple esp32 boards without me having to do everything manually. ideally jtag too. on bazzite this was literally just passing the device to docker and it worked

i've been looking around and found usb/ip, virtualhere, colima with qemu and orbstack. orbstack seems promising but it's proprietary and i'm kinda worried it'll stop being free someday. i'd prefer something open source if possible

i don't really wanna set up another full linux vm just for usb either, kinda defeats the point of using devcontainers in the first place

has anyone actually managed to get proper usb passthrough working on apple silicon? especially with esp32-s3 native usb serial/jtag? i'm looking for something that can handle flashing, resetting and monitoring repeatedly without randomly breaking

would appreciate hearing what actually works for you guys cause i've been going in circles with this for a while now


r/docker • • 3d ago

Mod Approved Guide - Use docker to operate legacy scanner hardware on Windows 11

Thumbnail
reddit.com
0 Upvotes

r/docker • • 4d ago

Sing-box in Docker always restarting

1 Upvotes

hello everyone and sorry for my English. I recently bought a VPS and install there Debian and docker from docs. And today i want to install sing-box in docker for my project, and i used command from Sing-box doc

docker run -d \

-v /etc/sing-box:/etc/sing-box/ \

--name=sing-box \

--restart=always \

ghcr.io/sagernet/sing-box \

-D /var/lib/sing-box \

-C /etc/sing-box/ run

And when i write in console, I always see

4d9eae7844b1 ghcr.io/sagernet/sing-box "sing-box -D /var/li…" 40 seconds ago Restarting (1) 10 seconds ago sing-box

How to solve it?


r/docker • • 5d ago

Matter server not starting

Thumbnail
reddit.com
4 Upvotes

i dont know how to continue, maybe someone can help me?

im running the latest version of HA as a docker container, which doesnt come with an integrated matter server. so according to documentation, i cloned the official matter server repository and wanted to run it again as a docker on the same host as the HA.

now i have the problem that the server doesnt start, it always fails with the eror below.

basically what it says is that creating the directory config"

asdmatterjs-server  | 2026-11-10 18:48:03.274 INFO   MatterServer         Command line: (no arguments)
matterjs-server  | 2026-11-10 18:48:03.281 INFO   MatterServer         Using storage drivers: kv=wal, blob=dir
matterjs-server  | 2026-11-10 18:48:03.294 INFO   ConfigStorage        Storage location: /data (Directory)
matterjs-server  | 2026-11-10 18:48:03.324 FATAL  MatterServer         Server failed to start /data/config: EACCES: permission denied, mkdir '/data/config'
matterjs-server  |   at async mkdir (node:internal/fs/promises:1571:10)
matterjs-server  |   at async NodeJsDirectory.mkdir (/app/node_modules/@matter/nodejs/src/fs/NodeJsDirectory.ts:83:9)
matterjs-server  |   at async NodeJsDirectory.lock (/app/node_modules/@matter/nodejs/src/fs/NodeJsDirectory.ts:91:9)
matterjs-server  |   at async DatafileRoot.#acquireRef (/app/node_modules/@matter/general/src/storage/DatafileRoot.ts:74:29)
matterjs-server  |   at async DatafileRoot.lock (/app/node_modules/@matter/general/src/storage/DatafileRoot.ts:64:20)
matterjs-server  |   at async WalStorageDriver.initialize (/app/node_modules/@matter/general/src/storage/StorageDriver.ts:264:26)
matterjs-server  |   at async WalStorageDriver.initialize (/app/node_modules/@matter/general/src/storage/wal/WalStorageDriver.ts:91:9)
matterjs-server  |   at async WalStorageDriver.create (/app/node_modules/@matter/general/src/storage/wal/WalStorageDriver.ts:52:13)
matterjs-server  |   at async StorageService.#openFilesystem (/app/node_modules/@matter/general/src/storage/StorageService.ts:273:29)
matterjs-server  |   at async ConfigStorage.open (/app/node_modules/@matter-server/ws-controller/src/server/ConfigStorage.ts:107:25)
matterjs-server  | 2026-11-10 18:48:03.386 NOTICE Runtime              Shutting down
matterjs-server exited with code 1 (restarting)

r/docker • • 6d ago

Docker Engine 29.10.0 packaging changes (Alma,Oracle,Rocky Linux support)

7 Upvotes

Hi, many people were asking for a long time about official packages for AlmaLinux, Oracle Linux and Rocky Linux, and I'm happy to announce that they will finally be available in the upcoming Docker Engine 29.10.0!

29.10.0-rc.1 is already on the test channel, so you can try them now using the convenience script:

curl -fsSL [https://test.docker.com](https://test.docker.com) | sh

Or set up the repo yourself (replace rocky with alma or oracle):

sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/rocky/docker-ce.repo
sudo dnf config-manager --set-enabled docker-ce-test
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

This only applies to new installs. If you already installed Docker using the RHEL or CentOS repo, you'll keep getting packages from there until you switch the repo URL yourself:

sudo rm /etc/yum.repos.d/docker-ce.repo
sudo dnf config-manager --add-repo https://download.docker.com/linux/rocky/docker-ce.repo

There are also other changes related to static packages published on https://download.docker.com

Full changelog here: https://github.com/moby/moby/releases/tag/docker-v29.10.0-rc.1

Detailed installation instructions will be published on docs.docker.com after the GA release (which should be this week).

Please let us know if you encounter any issues!

Packaging issues: https://github.com/docker/packaging/issues/
Engine issues: https://github.com/moby/moby/issues/


r/docker • • 9d ago

Guidance please, on my first docker

5 Upvotes

I'm setting my first docker container, for SyncThing. The host is a Debian Trixie VM running in Proxmox. The VM has 2 virtual disks. One is the root file system and all its directories. I've created a directory "data01" for the second, bigger partition.

I've installed Docker, and all the tests show that it's ready to go to work, as far as I can tell. Systemctl status shows it ready.

The plan is to create a directory /data01/docker/syncthing and have it use that as the "home" for this container. Are there strict rules around where the compose YAML file needs to reside, or can I just put it in that folder? Does the file name have to be "compose.yaml"? I think the content will look something like this:

services:
  syncthing:
    image: lscr.io/linuxserver/syncthing:latest
    container_name: syncthing
    hostname: debian-syncthing
    environment:
      - PUID=0  # Run as root user
      - PGID=0  # Run as root group
      - TZ=America/New_York
    volumes:
      - /data01/docker/syncthing/config:/config 
      - /data01/docker/syncthing/data:/data 
    ports:
      - 8384:8384       # Web GUI
      - 22000:22000/tcp # Listening port for data sync (TCP)
      - 22000:22000/udp # Listening port for data sync (UDP)
      - 21027:21027/udp # Local discovery broadcasts
    restart: unless-stopped

Is there a better option than specifying the root user, or is that not relevant because it's going to be started at system boot?

Any advice appreciated.


r/docker • • 9d ago

Question over general docker usage/concept

4 Upvotes

Greetings,

I would like to share a problem that I'm facing with Docker, looking for some ideas.

In our company we've started to use docker hosted in an Azure DevOps cloud ubuntu machine, there we have an Azure self-hosted agent installed. We work only with firmware projects and this is our build server. We have this setup for 3 years.

Usually, I generate the docker images on demand according with the project requirements.
In our firmware projects hosted in git we have a yaml pipeline configuration where we set the image tag so that the proper container can be raised to process the build.

We have a requirement from safety standards (we must keep the project artifacts/infrastructure from 10 to 15 years), because of that I keep all the dependencies I need to reproduce/re-create an image as debian installers (for offline installation). I've created a script which runs prior the build process, which creates a yaml manifest containing all the image packages and include this manifest also in the image (at /etc/manifest.yaml) for runtime check. Then it's possible to verify the content via the manifest hash. Examples of dependencies we have are cmake, unit test tools, static code analyzer, and so on.
We decided to keep everything in a single image because most of the tools require the compiler, so that the image complexity keeps lower as possible.

As we have different projects using the same images, we keep the Dockerfiles under version control, where the image name is the compiler version (the most significant dependency for our projects), something like this:

docker-<compiler>-<version>
  ubuntu-24.04
    Dockerfile
    build-image.sh
    manifest.yaml
  ubuntu-22.04
    Dockerfile
    ...

When a new image is generated, I tag the commit with the same tag I use in the container (e.g commit tag ubuntu24.04-v1.0-0, for a created container named gcc-13.3.0:ubuntu24.04-v1.0-0).

As our concept is based on tags, and the docker tags are not the most reliable thing in the world, I keep also the tagged image name as a LABEL within the image.

At this point I ask myself if we are going in the right direction and the increased complexity in the toolchain management is because of the concept we've decided to go for, or if it's just what we have to do in order to be compliant with such safety requirements. Or even I ask if we are drifting from the docker concept or using the tool in a wrong way.

I would really like to hear opinions, especially from other colleagues in similar situation.

Thanks in advance.

Note: I know that I can save the image in a registry, in parallel I'm trying to find solutions (if possible) to reduce storage costs (each image ~20GB).


r/docker • • 9d ago

The engineering team behind Bitnami has been laid off

250 Upvotes

r/docker • • 9d ago

What Docker containers can you recommend that I install on my Debian Home Server?

Thumbnail reddit.com
0 Upvotes

r/docker • • 9d ago

Create a docker image from dockerfile?

0 Upvotes

I got a dockerfile here that is sitting in my files but for some reasons docker cannot build an image out of it as it keep saying "failed to build: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory"

# For more information, please refer to https://aka.ms/vscode-docker-python
FROM python:3.13


EXPOSE 8501


# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1


# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1


# Install pip requirements
COPY requirements.txt .
RUN python -m pip install -r requirements.txt


FROM ollama/ollama
RUN ollama pull nomic-embed-text
RUN ollama pull qwen2.5:0.5b 



WORKDIR /app
COPY . /app


# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser


# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["ollama", "serve","gunicorn", "--bind", "0.0.0.0:8501", "-k", "uvicorn.workers.UvicornWorker", "local_rag:app"]

How do I build an image out of it. I wrote the file in vscode


r/docker • • 9d ago

NetAlertX Problems at Initially Starting the docker Container

2 Upvotes

[SOLVED] - The workaround is in the 1st reply

I'm starting with the docker compose setup of NetAlertX using the guide on the github page. It's a Rocky Linux 9.7 system that has been running a couple other docker containers without any issues.

The error message isn't too helpful:

[dockeruser@rocky-mini-01 NetAlert]$ docker compose up
Attaching to netalertx
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: sysctl "net.ipv4.conf.all.arp_announce" not allowed in host network namespace

I've been using docker for a while, but I am about an intermediate user at best. I can't tell if there are multiple errors listed here or just 1.

The last part is plain (runc create failed: sysctl "net.ipv4.conf.all.arp_announce" not allowed in host network namespace), but none of the remedies solve it. The compose.yaml file already has the "NET_ADMIN" and "network_mode: ${NETALERTX_NETWORK_MODE:-host}" and the entry for

sysctls:
net.ipv4.conf.all.arp_ignore: 1
net.ipv4.conf.all.arp_announce: 2

I've tried using:

sudo sysctl -w net.ipv4.conf.all.arp_ignore=1
sudo sysctl -w net.ipv4.conf.all.arp_announce=2

I've tried running the docker compose command as the dockeruser and root.

Literally, the only thing I changed from the NetAlertX compose file with the path:

# Example custom local folder called /home/user/netalertx_data

- type: bind
source: /mnt/disk/docker/NetAlertX/netalertx_data
target: /data
read_only: false

Any clues?


r/docker • • 11d ago

Any Docker Recommendations?

34 Upvotes

I just got into Docker for the first time, I know some of the basic fundamentals. But is there any recommendations or courses you took to help you understand Docker please I will really appreciate your recommendation.


r/docker • • 11d ago

my Docker backup worked but my recovery plan didn’t

11 Upvotes

I thought my backup setup was fine. the Compose file was in Git and the vm was backed up. Then I tried restoring everything instead of just assuming it would work. I started with easy test and restored my serverspace vm backup to a second server. The app came back with the database and uploads. Then I created a blank ubuntu vm, cloned the repo and ran docker compose up d. Every container was healthy but the app was empty. The Compose file could rebuild the stack, not the data.

I’ve since added separate postgres dumps and copies of the uploads and secrets outside the VM. The provider backup is still my quick recovery option but at least I can now rebuild elsewhere if I need to. For those who test their backups regularly how ofen do you actually rebuild everything on a clean vm? I need help


r/docker • • 11d ago

Anyone run Docker on an external SSD on a MacBook Pro 2021?

0 Upvotes

Hi all,

I have a 2021 MacBook Pro with 16 GB RAM. Performance is fine for me, but internal storage is the bottleneck. I got vexed up in cleaning up everyday. I use mole for cleaning and it's handy, but the grunt work is so heavy. I’m considering buying an external SSD to move docker VM raw image off the internal drive

Has anyone done this long term? I’d love to hear:

  1. Does it run smoothly, or do you notice slow builds, laggy simulators, or slow container startup?

  2. Which SSD and connection (Thunderbolt vs USB-C) are you using, and what speeds do you get?

  3. Any gotchas, like drives not mounting at boot, Docker failing when the drive sleeps or disconnects, or permission issues?

  4. Would you recommend it, or is it better to just clean up internal storage?


r/docker • • 11d ago

Contact to marketing or event team in EU

0 Upvotes

I am organizing an event and need a contact to marketing or event team, responsible for EMEA or more specific CEE region. Any ideas?


r/docker • • 12d ago

Failed to Detect docker.sock

Thumbnail reddit.com
0 Upvotes

r/docker • • 13d ago

Mountain Windows shared folder to docker container

0 Upvotes

We have Active Directory handled network with Windows machines. I shared a folder on a Windows Server 2016 machine, I could easily mount this folder on a Windows Server 2022 machine. Although when I want to use it in a container, I can't mount it. I tried as a cifs volume with ntlm or kerberos too but I couldn't make it work. The situation is the same when I want to mount it inside wsl2.


r/docker • • 14d ago

Rootless docker: ping from within container is way faster than host's ping

14 Upvotes

Hey, I'm trying to monitor my ping to external servers using BlackBox and I'm running into an issue that seems to be a general docker issue:

I'm running rootless docker and did this simple test:

$ docker network create ping-test
e4b47f5a00d890828f84b688d5490b6addfc465b892762381ba9a149d5095e81
$ docker run --rm --network ping-test alpine ping -c 10 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=63 time=0.997 ms
64 bytes from 1.1.1.1: seq=1 ttl=63 time=0.716 ms
64 bytes from 1.1.1.1: seq=2 ttl=63 time=0.642 ms
64 bytes from 1.1.1.1: seq=3 ttl=63 time=2.441 ms
64 bytes from 1.1.1.1: seq=4 ttl=63 time=0.800 ms
64 bytes from 1.1.1.1: seq=5 ttl=63 time=0.691 ms
64 bytes from 1.1.1.1: seq=6 ttl=63 time=3.087 ms
^C
--- 1.1.1.1 ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 0.642/1.339/3.087 ms

These ping times are wayyyy to low. When doing a ping directly on the host, I get around 10ms.

On another host that runs rootful docker this issue doesn't occur (ping inside of the container and host's ping are roughly the same).

Only similar issue I found was this issue from 2016 but that bug must have been fixed by now 😅

Is there any way to fix this without returning to rootful docker? Or is this just a limitation with rootless docker?


r/docker • • 15d ago

Help requested - using netcat to listen for broadcast UDP packets

4 Upvotes

My weather station hardware broadcasts weather data on a UDP packet periodically (weatherflow). I've a bash script that uses netcat (nc) and I need some advice on how to build the image.

I choose alpine 3.14 as a base and added the package netcat-openbsd.

I have two runtime issues:

  • I really want to use the "-W" option but I haven't been able to find a repository with a version that supports it. Is there an easy way to find the right repo?

  • How do I configure the networking so UDP packets are available to the container?

Thanks in advance for any help you could provide.