docker

Netfilter and forward chain traces ARP but not other packets

Netfilter and forward chain traces ARP but not other packets I am experimenting with netfilter in a Docker container. I have three containers, one a "router", and two "endpoints". They are each connected via pipework, so an external (host) bridge exists for each endpoint<->router connection. Something like this: containerA (eth1) — hostbridgeA — (eth1) containerR …

Total answers: 1

How to logrotate official nginx docker image running by podman

How to logrotate official nginx docker image running by podman I started official nginx image in podman under root with command: sudo podman run –name nginx … -v /var/log/nginx:/var/log/nginx docker.io/library/nginx:latest Logging working ok, but when try to logrotate on the host machine with all configurations taken from internet it fails, for example this one: /var/log/nginx/*.log …

Total answers: 1

kubernetes cluster – only crictl can actually see containers (containers assets)

kubernetes cluster – only crictl can actually see containers (containers assets) In my kubernetes (v1.28.7), docker uses containerd as underlying container management engine. (I guess I can call it Container Runtime Interface – CRI? ). This is how I assume that (look at the last line and scroll all the way to the right): lab@worker01:~$ …

Total answers: 1

.docker folder in home dir is too large

.docker folder in home dir is too large Using Ubuntu 20.04, I had installed docker, docker-desktop and docker-compose a long time ago. Now, I wanted to clean up some storage in my pc and being identifying the large files, and found that .docker folder in my home directory is 68 GB in stoage. I quickly …

Total answers: 1

Interface between applications running inside and outside a docker container

Interface between applications running inside and outside a docker container I am running Ubuntu 20.04 and am using the Nvidia Riva Automatic Speech Recognition application to detect speech commands. I would like to direct/pipe them into another application to execute a control action. The problem I have is that the ASR application is deployed within …

Total answers: 1

Docker-compose giving 'ContainerConfig' errors after update today

Docker-compose giving 'ContainerConfig' errors after update today Running Ubuntu server 22.04.4 LTS. Today I did an apt update and apt upgrade which ran through a few updates, and then I pulled new docker images via docker-compose pull. After I tried to restart the containers via docker-compose, I got a bunch of errors regarding container config …

Total answers: 4

Docker Relocate to external USB SSD Problem

Docker Relocate to external USB SSD Problem Ubuntu 20.04.5 LTS Docker version 24.0.2 I am trying to relocate the /var/lib/docker directory to my USB SSD flash drive to save memory on the internal storage, however, I am having difficulty doing so. I have attempted to modify the docker service to set a different data-root, but …

Total answers: 1

Container occasionally not part of network

Container occasionally not part of network I’ve a Docker container that is started via docker-compose. The configuration file specifies that it should be part of two networks. However, on occasion (approximately one in five runs), the container is only a member of one of the networks (i.e., docker network inspect <network_id> shows no containers). Here’s …

Total answers: 1

Chromium doesn't start under docker without `xhost +local:`

Chromium doesn't start under docker without `xhost +local:` $ xhost access control enabled, only authorized clients can connect xterm works: $ docker run –rm -it –network host –volume ~/.Xauthority:/root/.Xauthority:ro –env DISPLAY alpine:3.19 sh -euxc ‘apk add xterm; exec xterm’ chromium opens a window and seems to receive keystokes, but the window is empty (output): $ …

Total answers: 1

Docker – Explain used space by images and containers

Docker – Explain used space by images and containers I’m using Docker and try to understand how used space is managed. When I run docker system df, I can see the size of my images and containers. I previously run a docker system prune to clear every unsued elements, so it’s very reasonable and it …

Total answers: 1

how can I make a docker container run a command that will restart another container

how can I make a docker container run a command that will restart another container I made a fastAPI docker container, and it’s running fine, unless 1 command… I need it to restart another docker container when some event happen. I have a server[host], running docker, docker is running containerA (fastAPI) and containerB … How …

Total answers: 2

How to suppress nginx worker process notices?

How to suppress nginx worker process notices? Note: Logging is disabled but the notices still occur! I want a clean log that only shows errors for my Docker containers but nginx is just flooding the command line with noise even though I disable everything, is there any elegant way (e.g. not using grep as an …

Total answers: 2

What is the gateway for a container?

What is the gateway for a container? I’ve got Docker Desktop 4.25.2 running on my Macbook. After running docker network create foo docker run –rm -it –network foo ubuntu:22.04 bash I ran docker inspect <container_name> in another terminal. Down under "NetworkSettings", I see "Networks": { "foo": { "IPAMConfig": null, "Links": null, "Aliases": [ "a3166231defa" ], …

Total answers: 1

Trying to install postgresql16-client on an Alpine Docker Container

Trying to install postgresql16-client on an Alpine Docker Container I’m trying to create a Docker container with postgresql16-client but i’m getting an error saying that the package does not exist. I’m going to also install dotnet 8 on this container in order to run an API, the postgresql16-client i will be using to pg_dump a …

Total answers: 1

Launching docker daemon in Ubuntu 22.04 LTS on WSL-2 fails because of iptables

Launching docker daemon in Ubuntu 22.04 LTS on WSL-2 fails because of iptables I’m trying to run docker inside of Ubuntu 22.04.3 LTS running in WSL-2 on my Windows 10 machine. I have followed the instructions here. But it’s still not working, I am getting the following error when I run sudo dockerd : failed …

Total answers: 2

Docker taking too much space, even after removing all the images and containers

Docker taking too much space, even after removing all the images and containers I started using Docker recently and Docker was taking up too much space even after i prune all the dangling containers and images. When is try to run sudo docker system prune –all -f it shows "container prune" requires API version 1.25, …

Total answers: 2

What is a good way to run my Docker containerized application as a systemd service?

What is a good way to run my Docker containerized application as a systemd service? More and more applications have manuals telling you to preferrably run it within a docker container. But if you want an application to follow the system runlevels of the linux operating system that your docker container is running on and …

Total answers: 2

Is there a way to install docker on freeBSD?

Is there a way to install docker on freeBSD? Is there any way to install docker on FreeBSD? I tried following the official freeBSD handbook but from what i have found the version of docker on FreeBSD is broken (i read that on docker page). i wonder if there is way to install it using …

Total answers: 1

Can I specify a folder when creating container images?

Can I specify a folder when creating container images? When I create a new container, this error always occurs after a period of time. Even if I delete some images with command docker rmi dobotv4vc_2:v450stable_v2 && docker rmi dobotv4vc:450stable_v2, this error still occurs. Therefore, I have to use commands docker system prune -a to clean …

Total answers: 1