Questions tagged as ['docker']

Docker is an open source project that automates the deployment of applications inside software containers.
Score: 0
deciding on docker architecture setup and performance
ua flag

I will need to virtualize a jenkins software architecture and I don't know which architcture will be more efficient.

I need :

  • a jenkins server
  • an opensuse server for c/c++ 64 bits compilation
  • an msys2 system for win32 compilation and packaging (windows system)
  • an old 32 bits ubuntu 10.04 server for compilation.

my IT department bought a server with 24CPU@2.1ghz and 32Gb RAM

my IT department prop ...

Score: 0
Access the host's IP or loopback interface from Docker container
ng flag

willnorris/imageproxy is a caching image proxy server that we use in one of our deployments. We typically have a PHP backend that will serve some html or json to a client where the URL would be http://<imageproxy>/200/ Then the client will fetch that image from the proxy. This is fine.

What I cannot get working is doing this in local development using Docker (Com ...

Score: 0
Kinder9211 avatar
Using a RHEL system in a Jenkins pipeline, issues with permissions in docker-compose volumes
fr flag

I have an RHEL 7 Jenkins agent. On this agent, I have configured a pipeline to simply pull some code and do a

sh 'docker-compose up'

with the following compose file.

version: '3'
    image: python:3.6
      - ./logs:/usr/local/logs

The issue comes in the post step, where I want to do a cleanup and delete all the folders and files in the workspace. It seems that t ...

Score: 2
Paul avatar
GlusterFS volume stalls / blocks after quick access for PHP session files from PHP Docker container
in flag


Short description

A Nomad / Consul cluster is running, with Traefik (with minimal configuration) as a system task on each Nomad client. There are 3 nomad servers, 3 consul servers, 3 nomad clients and 3 Gluster servers at this point. Set-up very similar to this article set on setting up a Nomad / Consul cluster

Score: 0
How could I run PHP-FPM master process as non-root user?
mx flag

I'm trying to achieve rootless PHP-FPM pod running in Kubernetes.

I tried simply running process in Kubernetes pod via init script that does php-fpm -FO as www-data user but it complaints about not having permissions to access /dev/stderr (log output location). Adding www-data user to the tty group also didn't help.

I tried specifying another location like /proc/self/fd/2 and even /dev/pts/1 as log  ...

Score: 0
mr L avatar
Use multiple dockerized Nginx behind a host Nginx
in flag

I have multiple and different dockerized applications, each one comes with its proper Nginx service which sends traffic to its containers based on some rules.

I need to put those applications on the same server, so I added a new Nginx in the host that will handle SSL, and forward the traffic to the correct dockerized Nginx.

Question: Is it ok to use Nginx in the host which will forward traffic to mu ...

Score: 2
zire avatar
Using a Dockered Unbound DNS server as a resolver for other containers
cn flag

I'm using Unbound DNS server as a resolver for my home LAN. It runs as a Docker container on the default bridge network and in general it works as I'd expect it to, except when trying to use it as a resolver for the other Docker containers hosted on the same machine.

I tried setting the nameserver in the containers' /etc/resolv.conf to the Docker host's LAN address, but this is clearly not the ri ...

Score: 0
class_OpenGL avatar
Error with docker in a Slurm environment that uses LDAP as user management
cn flag

I have the next environment: a cluster with a head node, which is used to access all the compute nodes and the storage nodes. Slurm is installed in the head node and all the compute nodes, where the control of Slurm is in the head node. All users across all the nodes are managed with a LDAP server outside the cluster.

I would like to be able to launch docker processes using Slurm. With 'normal' d ...

Score: 0
Hussain Nagri avatar
Cant expose a port on the host but exposing on docker works
tr flag

I have an AWS instance. All incoming and out going traffic is allowed on all ports.

I run python3 -m http.server 8000 on the host but then I cant access <hostIP>:8000 from outside the host machine.

Now If I run docker container docker run -di -p 8000:8000 ubuntu on the same host.

and inside the docker container I run python3 -m http.server 8000 I am able to GET <hostIP>:8000 from outsi ...

Score: 0
j0hny avatar
Iptables and docker - disable remote access to container while retaining host and containers communiation via proxy
us flag

recently, I have started to migrate a webserver with several apps to new server and bundling every app in a docker container. My current setup consist of nginx for reverse proxy and database servers running on the server itself and all web applications running in their own docker containers.

I am now trying to secure the webserver using iptables, like I was doing for many years before. I need to  ...

Score: 0
Ian Chilvers avatar
Persistent firewall rules for Docker based on the DPORT (before the NAT takes place)
ma flag

Struggling with firewall rules with Docker containers.

The set up is as follows.

Slim install of Debian 11 running Docker (Standalone).
Installed on Docker is Portainer and 4 other web containers.
All attached to a single Bridged network called dkr-lan.

Ignoring the portainer container the other containers have the following ports mapped

  • web01 8081:80
  • web02 8082:80
  • web03 8083:80
  • web04 8084:80

web01 a ...

Score: 0
Saptronic avatar
Multiple containers in host over Ansible
au flag

Am wrote a playbook to create a container within a host machine. my idea is to create multiple containers per hosts. am trying to use the host.ini file to divide the host machines as a group and each container as an Ansible host within the group. Do you know how to structure the host file to use the Variable ansible_host to name the containers in the playbook used to create them.

my host file:


Score: 0
Martian4x avatar
Google App Engine deploying django ModuleNotFoundError: No module named 'app.wsgi.application'; 'app.wsgi' is not a package
ru flag

I have encounter this error '502 Bad Gateway nginx' when running a django app on google app engine. When I check the logs I got this

Traceback (most recent call last): File "/layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/", line 589, in spawn_worker worker.init_process() File "/layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/workers/", line 134 ...
Score: 2
Changing global IPv6 address vs. docker using fixed-cidr-v6
br flag

To enable IPv6 in my docker setup, I've set this in the file /etc/docker/daemon.json:

"ipv6": true,
"fixed-cidr-v6": "2a01:xxxx:yyyy:zzzz/64"

I got the 2a01:xxxx:yyyy:zzzz from my ISP and found it via ip addr | grep inet6 | grep global.

My ISP keeps changing the zzzz bit, and it also changes when restarting the router.


  • A) Is there a docker setup that does not require hardcoding changing  ...
Score: 0
Adam Harbach avatar
Nginx Reverse Proxy 403 Errors on POST Requests
es flag

I'm trying to set up a stack of services in Docker: Unifi, PHP, Nginx, and Certbot, where Unifi and PHP are the backend services and Nginx serves them in reverse proxy mode, while Certbot runs periodically to get SSL certs for Nginx.

I have it mostly working; all the GET requests work and I can view the page that Unifi serves. However, any and all POST requests via AJAX all throw a 403 error due  ...

Score: 0
docker-compose php files are updated but not executed
us flag

I am in a weird condition with docker-compose that I cannot explain.

I have installed a docker-compose with three services to serve Symfony project. The services are php-fpm, mysql and nginx.

So far I have installed all properly, and the Symfony is running as expected, but, when I do a change on a php file on the host machine, and I refresh the browser, then the changes are not reflected on my browser. ...

Score: 0
Dimitrios Desyllas avatar
How I can configure my local machine to use a docker hosted dns server alonsside with ant other dns settings for specific domains?
fr flag

I have the following docker-compose.yml used as php web app local solution:

version: "3.1"

    image: nginx:1.13
      - "./configuration/nginx.conf:/etc/nginx/nginx.conf:ro"
      - "./configuration/etable-local.key:/etc/nginx/etable-local.key:ro"
      - "./configuration/etable-local.crt:/etc/nginx/etable-local.crt:ro"
      - "website:/var/www/html/website"
Score: 0
Tawfik avatar
Nginx 400 bad request and nothing interesting in logs
cn flag

I can't stop getting 400 bad request. After some research, I found out that this meant that the request had bad headers due to a bad configuration

Here is my nginx.conf file:

user  nginx;
worker_processes  auto;

events {
    worker_connections  1000;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/;

http {
    include       /etc/nginx/mime.types;
    default_type  applic ...
Score: 0
Anthony avatar
Why the certificate Authority always failed the temporary challenge file created by Certbot?
th flag

i'm using jonasal/nginx-certbot image for letsencript certificates generate.


version: '3'
    image: jonasal/nginx-certbot:latest
    restart: unless-stopped
      - ./nginx-certbot.env
      - 80:80
      - 443:443
      - nginx_secrets:/etc/letsencrypt
      - ./user_con ...
Score: 0
amirali avatar
Nginx docker container doesn't accept request
ru flag

I am trying to run a Nginx web server on a docker container. What I have done:

$ docker pull nginx
$ docker run -d -p 8080:8080 --name nginx1 nginx

Then docker ps shows the container is running. Also tesing nginx is up:

$ docker exec -it nginx1 bash
root@...:/# service nginx status
[ ok ] nginx is running.
root@...:/# curl http://localhost:8080/

{Shows the content of html file located on /etc/nginx ...
Score: 0
boatcoder avatar
Nginx can't be reached inside the docker container. What have I left out?
us flag

I've run out of ideas as to why I can't connect to this nginx inside or outside of the docker. I can understand that networking might cause a problem outside the machine, but even inside the docker nginx is not responding even though you can see it running and listening (inside the docker). Outside the docker, maybe the port isn't mapping thru but it seems to be configured such that it should.

Score: 0
Troubleshooting Windows container in Azure app service
cn flag

I've been struggling for over a week to get a Windows container to run with an Azure App Service. My initial preference was to just use a standard container instance, but it appears that you only have the option of public or private networking, rather than custom (unlike with Linux containers). It looks like if you run your Windows container within an app service, you get the same networking options y ...

Score: 0
Keith avatar
Multiple webserver docker containers listening on different host IPs
kz flag

I have a server with multiple IP addresses. I want different nginx containers to listen on :80 and :443 on two IPs on this host.


  image: nginx:mainline-alpine
  container_name: www1
    - ""
    - ""


  image: nginx:mainline-alpine
  container_name: www2
    - "69. ...
Score: 2
g4s8 avatar
Docker-compose can't connect via socks-proxy to SSH remote host
au flag

I'm trying to deploy containers using docker-compose to remote server via SSH. Remote server SSH can be accessed only via SOCKS proxy. I created ~/.ssh/config with valid SOCKS configuration for that:

Host <>
  HostName <>
  ProxyCommand socks-connect -S <socks-user>@<socks-host>:<socks-port> %h %p
  Port <ssh-port>
  User <ssh-user>
  IdentityFile ...
Score: 0
Stackerito avatar
Host is unreachable while connecting to upstream from Node Docker container
in flag

I have an API at backend.mysite.local and I am able to access it directly from the browser. But when I try to call the API from within the Node container, I get 502 Bad Gateway with the following error:

connect() failed (113: Host is unreachable) while connecting to upstream, client:, server: www.mysite.local, request: "GET /api/items HTTP/1.1", upstream: "" ...

Score: 3
Obay Abdelgadir avatar
Can't run docker in Centos 7
cn flag

I installed docker following the official website instructions, yet I get the following (from journalctl -xe):

Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.614348477Z" level=info msg="Starting up"
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021-09-12T11:15:16.646352167Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Sep 12 11:15:16 myhostname dockerd[18504]: time="2021 ...
Score: 0
Alex avatar
Docker + Nginx + Several sites with reverse proxy; directory issue
tr flag

I just configured my server to multi-site revproxy using docker external network and configured my revproxy nginx container to work with fastcgi. Right now, for testing purposes, one of the sites is working, but it seems that the nginx for the website container does not correctly figure out the path for laravel index file and only provides me with the default "Welcome nginx" page.

I would be very ...

Score: 0
Docker container port mapping 80:80 only works on localhost but not from external access?
id flag

Logged in my intranet server via SSH on IP (port 22 of course)

Created a docker-compose.yml:

version: '3.8'
    container_name: php-apache
    image: php:8.0-apache
      - ./php/src:/var/www/html/
      - 80:80

And in ./php/src I have index.php:

echo 123+123;

I use docker-compose up -d in the current directory, an ...

Score: 0
NBajanca avatar
GitLab Runner for GitLab server with CA signed certificate failing with: self signed certificate in certificate chain
md flag

My company changed the Certification Authority (it was a single CA and now we have a root CA and an intermediate CA). I changed the configuration in the GitLab instance with success and moved to the runner (that is on a Ubuntu 18.04.5 LTS). I tried to follow the GitLab docs without success.

I followed the default approach here that says "Default - Read the system certificate", and so I added the  ...

Score: 0
Major Kuprich avatar
Varnish doesn't open backend connection
us flag

How can I connect Varnish container with PHP-FPM + NGINX containers? Docker started correctly, site works but backendopen logs are empty.

Backend is healthy (returns HTTP 200 status).

varnishlog -g raw -i Backend_health

0 Backend_health - default Still healthy 4---X-RH 7 5 10 0.048069 0.065633 "HTTP/1.1 200 OK"

From http (nginx) container I see request in docker logs.

docker logs http

[10/Sep/2021:17: ...