Questions tagged [docker]

Docker is an open source project that automates the deployment of applications inside software containers.

Filter by
Sorted by
Tagged with
3 votes
0 answers
80 views
+100

Docker swarm routing mesh does not forward UDP traffic after container restart

I have setup a docker stack with a couple services. One of the service is publishing a UDP port that it is listening for traffic on (it happens to be a Wireguard endpoint, but I don't think this is ...
-1 votes
0 answers
34 views

How do I get myself out of docker hijacked network situation on my Debian VM?

I ran into a problem with wg-easy docker in trying to set up Wireguard using docker on my Debian VM so I changed network_mode to host as a last resort without learning about the consequences... The ...
0 votes
0 answers
18 views

What to check on what is blocking my open port on Debian?

I would have posted my attempts but I currently do not have access to this Debian VM... (see related question How do I get myself out of docker hijacked network situation on my Debian VM?) Anyway, the ...
0 votes
1 answer
24 views

Apache Kafka Single Node Docker- how to set listener to docker hostname

I am using the Apache Kafka 3.7.0 docker image as outlined here, with some minor tweaks: docker run --network=internal --name my-kafka apache/kafka:3.7.0 My intention is to only access this within the ...
0 votes
1 answer
5k views

Can't connect to mysql docker when using phpmyadmin docker

I'm just getting started in docker and maybe I'm starting of a little big but I found an article that explained out to get a coldfusion install (run by commandbox) up with mysql. This docker compose ...
0 votes
2 answers
2k views

Unable to connect to Docker WordPress after setting Site Address

I'm launching a Docker container for WordPress following this tutorial. I'm running this on a machine that is at my desk, I have complete access. It is running Ubuntu 20.04. Here is my docker-compose....
1 vote
1 answer
4k views

EC2 instance's Docker ports not not accessible after changing instance type

When changing the EC2 instance type I ran into a problem. The machine had 3 Docker containers that needed to be restarted and after the restart their ports became unreachable. What could be the ...
0 votes
1 answer
5k views

Using Gitlab docker behind nginx proxy manager docker

I try to setup Nginx Proxy Monitor(NGPM) as a reverse proxy for Gitlab and other websites/services. Gitlab itself is running inside a docker container that has it's own IP address. NGPM is also inside ...
0 votes
0 answers
50 views

How do I get debug logging out of php_fastcgi in a container?

I am running a container built from this Dockerfile. It's running a basic PHP application. In front of it I have Caddy. A lot of people put nginx in front of PHP. I don't and I won't. So if your ...
3 votes
3 answers
1k views

fail2ban bans IP addresses, yet they still appear in access.log

This is my filter: [Definition] failregex = <HOST> .* "POST /customer/account/create.*$ <HOST> .* "GET /customer/account/create.*$ and this the corresponding jail: [...
2 votes
1 answer
65 views

What is the risk of directly accessing /var/lib/docker/volumes/<volume_name> data?

Over the years I have been using docker for self-hosting, I never really cared about mounted volumes because I did not see real advantages vs mounted folders (I know about advantages related to ...
0 votes
0 answers
14 views

How can I optimize my Docker workflow on three servers? [closed]

I am a hobbyist amateur developer. I want to build a scraper that works on three servers. My workflow looks like this: I have the same setup on all three servers - I manually install Ubuntu 22.04 ...
374 votes
30 answers
510k views

How can I use environment variables in Nginx.conf

I have a docker container running Nginx, that links to another docker container. The host name and IP address of the second container is loaded into the Nginx container as environment variables on ...
1 vote
1 answer
8k views

Got django.db.utils.OperationalError: could not connect to server: Connection refused

I found a Django project and failed to get it running in Docker container in the following way: git clone git clone https://github.com/NAL-i5K/django-blast.git $ cat requirements.txt in this files ...
0 votes
0 answers
9 views

Jenkins credentials not showing when creating docker cloud in jenkins nodes, how to fix that?

This is docker cluod options in Node section of jenkins. the secret is in jenkins --> system --> global credentails runrestricted I add credentails already. But not showing in the drop down.
1 vote
0 answers
60 views

debian:jessie container, apt-get update 100% CPU in PhotonOS host

In a Photon OS machine in VMware ESXi: docker run debian:jessie apt-get update The apt-get update process takes several hours to finish, using ~100% CPU. Even with an empty /etc/apt/sources.list. ...
0 votes
0 answers
11 views

Error when use${gl} or ${PWD} for mounting bind volumes in docker run command in PowerShell 7

When I try to mount a bind volume using PowerShell 7.4.1, for example with this command: docker run --rm -d --mount type=bind,target=/usr/share/nginx/html,source=${pwd}\docs nginx The command not ...
11 votes
1 answer
9k views

What does --memory-reservation flag do in practice?

Docs say: Under this configuration, when the container consumes memory more than 200M and less than 500M, the next system memory reclaim attempts to shrink container memory below 200M. But what ...
1 vote
1 answer
1k views

How to configure Wireguard to allow Internet access?

I have an Ubuntu 20.04.1 LTS to host a linuxserver/wireguard Docker container. Clients can successfully connect to the Wireguard server, but I'm unable browse Internet websites on the clients while ...
2 votes
2 answers
78 views

403 from Google certificate endpoint when using IPv4

I am using the library google-auth~=2.28.1 to enable "Login with Google" in my webapp. The login works on my local computer and on the test-server (hetzner), but on the prod-server (also ...
0 votes
1 answer
273 views

How to differentiate docker containers in stackdriver logging?

I have a VM in GCE with docker installed. There I run containers using the Google Cloud Logging driver. I can see the logs in stackdrive logging. However, i can't easily browse between logs of ...
0 votes
0 answers
32 views

Containerd can`t find the image in the private registry, so k8s can't get the image for the container

I try configure k8s cluster. I have private docker registry on the nexus server and try pull image from it. When i use docker pull all work correctly, but when i use helm for deploy my app, i have ...
0 votes
1 answer
27 views

Map network drive to unavailable network share

I'm trying to build windows container with predefined network drives. When I add RUN NET USE Z: \\myfileserver\sharedfolder, I get error: System error 67 has occurred. The network name cannot be ...
2 votes
1 answer
9k views

How to create .env multiline variable

The title may be a bit confusing, so a little explanation. I need to configure an application by passing a PKCS1 PEM encoded key using environment variable. The App is configured using a .env file ...
0 votes
0 answers
29 views

Random CPU + MEMORY spikes issue on Ubuntu server + Docker + PostgreSQL

I've been encountering an issue that has been bothering me for a while now. I have a Google Cloud VM running an Ubuntu 18.04 server with several containers, including a PostgreSQL server, a Redis ...
0 votes
0 answers
15 views

Cant build php7.0-fpm dockerfile The repository Release file

docker build -t php7-fpm-custom . build on ubuntu 22.04 minimal Reading package lists... W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release ...
1 vote
1 answer
72 views

Grafana Agent in Docker runs perfectly for over a week and then suddenly stops working. When we check, the Data folder is gone

We have deployed the Grafana Agent using the official Docker image to send metrics of our server and containers to Grafana Cloud: docker run \ -v /etc/grafana-wal:/etc/agent/data \ -v /etc/grafana-...
0 votes
0 answers
40 views

How to create a new admin user in Portainer at the shell?

I've newly joined a team having root access to a Linux based Docker host with Portainer up and running on it. That whole setup was implemented by someone not available to the company anymore and ...
0 votes
0 answers
37 views

GPG Signature error when running apt update in a jammy docker container

The following error breaks my docker image build 0.511 Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB] 1.281 Err:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease 1.281 At ...
0 votes
0 answers
53 views

How to run a kubernetes pod as NFS server?

I have the following problem: We have an S3 Minio Storage with a dataset consisting of ~600k files which amount to around 1.3Tb of storage space On our Kubernetes cluster I want to run a training ...
3 votes
2 answers
4k views

Use auto mounted USB drives in Docker container

With Ubuntu, USB drives are automatically mounted at /media/<user>/<drive> when they are plugged in. I wanted to use this to make newly connected USB drives available in a running Docker ...
0 votes
2 answers
52 views

Is it possible to run Docker on a hypervisor type 1?

Is it possible to run Docker bare metal on a type 1 hypervisor such as VMware and Hyper-V? Docker uses that same kernel as the host. So if the hypervisor is based on linux, does that work? Is there ...
1 vote
1 answer
43 views

Invalid response from .well-known/acme-challenge/<token> : 404 + nginx

I have seen these questions (^,^,^,^), but unfortunately none of them could solve my problem. I'm trying to use certbot to obtain an SSL certificate for one of my subdomains. However, the challenges ...
0 votes
2 answers
5k views

Docker repository does not have a release file for apt-get update on debian bullseye

Trying to get an updated / current version of docker on debian bullseye, I get: $ sudo apt-get update ... Ign:14 https://download.docker.com/linux/ubuntu bullseye InRelease Err:15 https://download....
12 votes
4 answers
29k views

How can I get docker build to overwrite a file?

It seems that docker build won't overwrite a file it has previously copied. I have a dockerfile with several copy instructions, and files touched in earlier COPY directives don't get overwritten by ...
0 votes
0 answers
38 views

Install SSL Certificate for Docker Container on EC2

We are running an NGINX Server on a Docker Container which is hosted on an EC2 instance. Our Domain is registered with Amazon Route 53 but it seems like, there is missing an SSL Certificate on Docker ...
-2 votes
1 answer
28 views

Local Server connection to internal Mail-Server and SSL

I work in a company that has a pretty strict policy regarding the separation of internal and internet. I got a server for our branch office, I have a static IP for our internal network but no domain. ...
2 votes
4 answers
9k views

Proxy Error 502 "Error reading from remote server" Apache 2.4.18 Ubuntu with HTTPS into Docker container

I'm no expert and can't see what's the problem, but obviously this error is caused by a tiny detail it seems I can't debug. Any idea? What I have: I have multiple virtual hosts configured with Apache2 ...
8 votes
3 answers
14k views

Scaling out Dokku infrastructure

I just finished setting up a Dokku-based infrastructure, but i'm curious about how to scale it. I followed this tutorial by Digital Ocean, but there's not mention of HA or scalability. Is it ...
0 votes
0 answers
40 views

Docker daemon inactive (dead)

I am having trouble with my Portainer GUI. I can't seem to find my local environment. As a solution, I changed some parameters in the 'docker.socket' file on my Ubuntu server. However, this seems to ...
0 votes
0 answers
24 views

Error "The connection to the server was refused - did you specify the right host or port?"

I'm new to K8s. I'm configuring a K8s cluster on EC2 and I've started by installing docker, then started: systemclt start docker Installed kubeadm on the EC2 instance: (https://v1-28.docs.kubernetes....
0 votes
0 answers
54 views

How to configure a docker compose file so that it sees both user-defined networks and the default ones?

Summary of the problem I use a reverse proxy (caddy) in order to serve my application (helloworld) though a specific docker network (srv) that connects my containers and the reverse proxy. It is ...
5 votes
2 answers
5k views

Route outgoing connections from a docker container through a specific IP

I have a docker host machine with a single physical network interface (eth0) and multiple IP addresses assigned to it using IP aliasing (eth0:1, eth0:2, eth0:3). I would like to run several docker ...
0 votes
0 answers
157 views

How to access a docker-compose container running with Minikube?

I used to setup and run some containers in my local machine with docker-compose with the Docker daemon running via Docker Desktop. I uninstalled Docker Desktop (due to licensing issues) and installed ...
1 vote
2 answers
5k views

What's the right way to configure Nginx for MinIO server running as a docker service

I am just trying to proxy pass from Nginx to Docker Minio service; however, with my current nginx config file, it's not working as expected and keeps loading when I browse any Minio buckets from the ...
1 vote
1 answer
478 views

Netplan configuration for bridge and route setup

I'm not very versed in netplan. Basic static IPs and VLANs are all I've really done. I need to get this set of commands to persist on reboot: ip link add loop-to-lan link eno1 type macvlan mode bridge ...
0 votes
1 answer
29 views

Why can I connect to the docker daemon with sudo, but not root?

Consider the following sequence of commands. When I try to connect to the docker daemon as a regular user, or root, I can't. When I use sudo (both as a regular user and root) I can. Why is this? [john@...
0 votes
1 answer
29 views

How to Configure vcluster to Use Internal Docker Registry Certificates?

I'm setting up a vcluster instance and I want it to use images from an internal Docker registry available at docker-registry.docker-registry:5000. On regular Kubernetes nodes, I usually configure this ...
1 vote
1 answer
108 views

Make Docker Compose available to non-root user?

I've created a non-root user (userB) on my Ubuntu Linux 22.04.4 server for an application and added them as a member of the docker group. When I try checking the Docker Compose version as this user, I ...
0 votes
1 answer
229 views

Dockerized http services are not accessible from nordvpn meshnet

I am setting up a home server (using ubuntu server 22.04) with several services deployed on various ports. For example, my homepage server is deployed on port 3000. When on the local network: Ssh ...

1
2 3 4 5
86