Questions tagged [docker]
Docker is an open source project that automates the deployment of applications inside software containers.
4,317
questions
1
vote
1
answer
213
views
HEREDOC in Dockerfile produces no output
I have this command that I am trying to run in a Dockerfile and it is producing no output to the file:
FROM alpine:3.19 as base
RUN <<-EOF > /root/.npmrc
registry=https://\${...
0
votes
1
answer
100
views
Not able to connect to local MySQL install after using Docker and MySQL image to connect to secondary DB on external drive
Huge appreciation for help in advance. Using Ubuntu 22.04 and MySQL 8.
I have a legacy MySQL DB on an external hard drive as well as a local install on my Ubuntu machine, both using MySQL 8.
I set up ...
0
votes
0
answers
211
views
How to forward Wireguard traffic to shadowsocks by provided urls?
I have 2 servers on separate hosts: wireguard and shadowsocks. They work as expected.
Wireguard server config in docker container (0.0.0.0:51821->51821/tcp, :::51821->51821/tcp, 0.0.0.0:51820-&...
0
votes
0
answers
34
views
Dynamically Set GitHub Actions Secrets on Docker Container Build/Run Command with bash/shell
I'm in the early stages of building an automated pipeline. Still in the exploring phase. Right now, I'm struggling with setting the environment variables for the container I'm going to run my app and ...
0
votes
1
answer
70
views
Set GitHub Actions Secrets on Docker Container Build/Run Command
Set GitHub Actions Secrets on Docker Container Build/Run Command
I'm in the early stages of building an automated pipeline. Still in the exploring phase. Right now, I'm struggling with setting the ...
1
vote
2
answers
169
views
Can I use 127.0.0.2, 3, etc to map docker container ports to the same port but different loopback IP on my docker host?
I am using ubuntu 22.04 as docker host. On this host I deploy an nginx reverse proxy with TLS termination.I will deploy multiple (say 3) docker compose deployments on that host, and each one there ...
0
votes
0
answers
29
views
RDP Issues after docker update
I'm using Docker Containers with VPN Images which do a portforwarding. I'm connecting to the container published ports via RDP. After running this update
containerd.io/bookworm 1.6.27-1 amd64 [...
0
votes
1
answer
115
views
VMWare Ubuntu - How to access a docker container in Ubuntu while also running nginx
I am running Ubuntu 22.04.3 LTS in a virtual machine. I installed Nginx with port 80.
When accessing http://localhost:80, the normal website is displayed by Nginx.
I then installed docker and two ...
0
votes
0
answers
53
views
How can I find TLS settings for Traefik running in Kubernetes containers, to stop allowing weak cipher suites?
I have some servers that have been flagged as allowing insecure TLS/SSL cypher suites, etc for HTTPS. I need to get it corrected. However, the web servers on them are running from Docker/Kubernetes ...
1
vote
0
answers
330
views
MariaDB io_uring_queue_init() failed with errno 1 with kernel version 6.2.0-1018
I am running MariaDB using the official docker hub image: mariadb:lts
(this is MariaDB 10.11.6-MariaDB-1:10.11.6+maria~ubu2204 source revision fecd78b83785d5ae96f2c6ff340375be803cd299)
When the ...
1
vote
3
answers
721
views
Permission denied for unix socket mounted in docker container as volume
I try to containerize my nginx running currently on my server. For this I created the following docker compose file:
version: "3.8"
services:
nginx:
image: nginx:stable-alpine
...
0
votes
0
answers
187
views
nginx: redirect to docker containers with https enabled
I have two containers running in an EC2 instance, the first uses port 4200 and the second 8188. I also have a domain name "my-domaine.com" connected to my EC2 instance.
I'm aiming to reach ...
0
votes
0
answers
167
views
Docker Swarm nodes on different subnets
I'm trying to setup a docker swarm between two computers I have at home and a VPS, the configuration is the following:
Manager ip: 192.168.1.132/24
Manager second ip: 192.168.100.1/24 (VPN)
...
1
vote
0
answers
18
views
Can memory compaction cause a high perceived memory usage?
This is a bit of a long shot, but we're currently experiencing some issues with one of our Dockerized Java applications: Stackoverlow question
We've set the docker memory limit to 2GB, which is way ...
3
votes
1
answer
356
views
How to share docker metrics with Prometheus using Ubuntu server Snap Docker Service
I am using Ubuntu server with a Docker Service installed from the Server Setup (snap) and Prometheus running in a docker container.
Server:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
...
1
vote
0
answers
70
views
Squid to allow src ip address
I have a squid proxy running on a docker on linux with ip say a.b.c.d
Squid proxy is configured to allow only certain domains (dst) and block everything else. There is also a parent proxy configured ...
0
votes
0
answers
151
views
AWS ECR pull-through-cache fetch image via HTTP request to registry
I've set up an AWS ECR pull-through-cache for Docker Hub registry.
Say it is available under: 123.dkr.ecr.eu-central-1.amazonaws.com/docker.
Now after authenticating using:
aws ecr get-login-password ....
0
votes
1
answer
48
views
how to setup failover network with docker on synology
I have one synology nas with 2 nic and I have two different internet connect from 2 different ISP. and I am using cloudflare zero trust service in my docker on synology.
that nas server nics connect ...
0
votes
1
answer
271
views
How do I mount a volume in docker so files aren't owned by root?
I have a directory on my linux computer (Ubuntu 23.10) called:
/home/steve/foobar/foo
The directory and all of the files in it are owned by user steve (uid 1000) and group steve (gid 1000).
I want to ...
0
votes
0
answers
65
views
Containers not starting when server starts despite restart policy
Currently have nine containers running under Ubuntu Server Mantic Minotaur 23.10. All are configured with a restart policy of unless stopped.
If the server loses power and restarts, seven of the nine ...
0
votes
0
answers
194
views
How does docker swarm handle volumes mounted on replicated services and How would one integrate this with S3?
Setup: A docker swarm with one manager and one worker node (two virtual machines at play). The docker-stack.yml contains two services
primary: bitnami/postgresql image setup as the master postgres ...
0
votes
2
answers
94
views
mysql: ask for password interactively when using docker exec
Usually you would run the MySQL client to import an SQL file like this:
mysql -uexample_user -p example_database < filename.sql
It will then ask for the password and after the correct password was ...
1
vote
1
answer
241
views
Nginx sporadically fails to resolve hostname for proxy_pass
I have a problem with my nginx reverse proxy setup: About 5% of requests get a 502 error, with a corresponding entry in the error.log reading:
[error] 12314#12314: *749929 searxng.docker could not be ...
0
votes
1
answer
195
views
Authenticate with Freeradius from LDAP fails
I want to set up Freeradius to be able to authenticate via an LDAP database.
Freeradius can connect and find the user in LDAP directory correctly:
2024-01-14T22:00:25.233318433Z (1) ldap: EXPAND (uid=%...
0
votes
1
answer
153
views
Extending LVM on virtualized ubuntu server
Ok, I hope I can explain this correctly. I am running ubuntu server on proxmox. Unbuntu is running my docker instance. My LVM i originally assigned it is full and I added more storage in proxmox ...
0
votes
2
answers
224
views
Some docker swarm worker nodes cannot pull image
So here is a weird situation; I created a production environment using swarm with 1 manager and 3 worker nodes.
We are using our private repository to deploy our services on top this stack.
The ...
0
votes
1
answer
517
views
Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first
We've configured a Dockerfile containing the following code snippet:
#############################################
#### Image containing compiled libraries ####
####################################...
2
votes
2
answers
500
views
Mounting Samba share to Docker container
Goal
On my server I am runing various Docker containers, specifically a syncthing container. In addition I am also using my server for different Samba shares.
My goal is to mount the host directory /...
0
votes
0
answers
172
views
Docker won't start stacks
I had a power failure that resulted in a server shutdown, and although I was on a power backup, something happened where the server didn't do a graceful shutdown of docker. Now I cannot run our stack....
0
votes
0
answers
54
views
Synology Docker - Automatically start server with nodemon
I'm a beginner with docker. In Synology, I'm able to create a container through an image via their UI and customize it without touching any configuration file. When I configure my container to run the ...
0
votes
2
answers
322
views
Docker Container Loses Connection after short time routed through Host VPN Interface
So I have the following example compose file, with a custom defined network:
version: '3.7'
services:
ubuntu:
image: ubuntu
restart: unless-stopped
tty: true
networks:
...
0
votes
0
answers
108
views
Rational behind separating nginx and PHP-FPM in two docker containers
I see here and there that separating Nginx and PHP-FPM in two Docker containers is a common approach.
In my environment (basic 'not so big' Symfony application) i setup both inside the same container ...
-1
votes
1
answer
302
views
Very slow performance with Nginx and Traefik
We have the following infrasctuture to deploy a PHP application:
A VM running Nginx as a proxy
3 nodes in a Docker Swarm cluster
Traefik containers deployed in this cluster (so we have 3 containers ...
0
votes
1
answer
611
views
Docker- Giving Container access to Host's CA certs
I was wondering security wise if there was anything wrong with volume mounting the host's ca certs into a container. I.e,
docker run \
-v /usr/local/share/ca-certificates:/usr/local/share/ca-...
0
votes
1
answer
201
views
Synology NAS, Nginx, php-fpm, file not found
Hello and a happy new year!
I also get the very common but annoying error: "File not found".
Now, i am trying to be as precise as possible and hope somebody knows what the problem is. Short ...
0
votes
0
answers
42
views
Connecting multiple PHP containers to a single shared Elasticsearch container
14 PHP containers php_1, ..., php_14 and 14 NGINX containers nginx_1, ..., nginx_14 are running on a server. The PHP container php_i is only connected to nginx_i and all NGINX containers are connected ...
0
votes
1
answer
300
views
Getting random http/s requests from certain IP addresses
Stack used: ExpressJs, NodeJs, Docker, Nginx, Ubuntu 20.04
I host my backend on DigitalOcean droplet with the tech stack mentioned above. My server constantly has been targeted multiple times on ...
0
votes
0
answers
188
views
bind9 behind nginx reverse proxy DoH
I'm trying to setup bind9, in a container, behind a nginx reverse proxy.
Basic DNS requests work fine, but I struggle with DoH...
Right now, dig +https @BASE_URL gnu.org gives me this error:
;; ...
0
votes
1
answer
165
views
Meaning of docker runs the container as root user
Does docker runs the container as root user means the effective UID of the processes started inside the container is the root user inside the container? Or the host container process invoked with ...
1
vote
1
answer
567
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
...
-1
votes
1
answer
81
views
Locked server because of IP spoofing
I have hetzner server. Inside this server there is Docker service which inside creates a few containers. Inside this containers I create vpn connections with openvpn. After connection I make some ...
0
votes
1
answer
76
views
Is it possible to bind a port with HTTPS in nginx
I have a graphql api that works when accessed with http://example.com:4001/graphql but does not work with https://example.com:4001/graphql which is obvious as https takes the port 443 and here I am ...
0
votes
1
answer
52
views
The server receiving the HTTP request identifies the IP address of the container instead of the server's IP address
There is a Nginx container that belongs to the messaging microservice written in Laravel with IP 172.19.0.8 in a server. The container inside the server posts an HTTP request to another server. ...
3
votes
1
answer
816
views
Traefik routing to two ports in one docker container
I want to serve two web servers from a single docker container, and expose them through two ports using a Traefik proxy server.
I found an example docker compose file that serves two web servers from ...
1
vote
0
answers
44
views
crontab -> shellscript -> docker -> redirect output to localfile
I am currently switching from rsync to a borg based backup.
Everything is working, except getting the output of borg to my logfile.
My setup is as follows:
I am trying to do everything in docker to ...
0
votes
1
answer
510
views
Playbook not use sudo command - Ansible Semaphore in Docker Container
So
I'm learning DevOps tools. I installed Ansible Semaphore in a Docker container on my home server and created playbooks. I created a sudo user on a remote server and added an SSH key. However, my ...
0
votes
0
answers
239
views
Internal Server Error when deploying Laravel using docker & reverse proxy
I'm trying to deploy my Laravel apps using docker. But got internal server error when accessing the url.
I have 2 server, one is for public ip & reverse proxy, and the second is where the Laravel ...
0
votes
0
answers
46
views
Can sleeping dockerized mysql processes cause high system load?
I'm in the process of finding out what could cause a huge system load at night. Icinga2 reports a CRITICAL state at 2:15 am:
load average: 49.23, 24.50, 10.24.
I've checked the syslog and found ...
0
votes
0
answers
462
views
Wireguard VPN can't access non-standard ports
I have a Unifi UDM-SE running a Wireguard VPN server with the following configuration:
"Main" network: 10.2.1.0/24
"Main" gateway: 10.2.1.1
VPN network: 10.2.2.0/24
VPN gateway: 10....
0
votes
1
answer
86
views
Creating ppolicy Overlay in OpenLDAP has no effect
I read +++ forums and docs.
My OpenLDAP instance is configured in a Bitnami Container as follows:
dn: cn=module,cn=config
cn: module
objectClass: olcModuleList
olcModuleLoad: ppolicy.so
olcModulePath: ...