Questions tagged as ['docker']

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 ...

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/https://willnorris.com/logo.jpg
. 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 ...
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'
services:
pythontest:
image: python:3.6
volumes:
- ./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 ...
2021-10-05 UPDATED QUESTION AND TEXT AFTER MORE ANALYSIS, STRIPPED DOWN TO MINIMAL CASE
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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:
-----
...
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/arbiter.py", line 589, in spawn_worker worker.init_process() File "/layers/google.python.pip/pip/lib/python3.9/site-packages/gunicorn/workers/base.py", line 134 ...

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.
Questions:
- A) Is there a docker setup that does not require hardcoding changing ...
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 ...

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. ...
I have the following docker-compose.yml used as php web app local solution:
version: "3.1"
services:
nginx:
image: nginx:1.13
volumes:
- "./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"
...
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/nginx.pid;
http {
include /etc/nginx/mime.types;
default_type applic ...
i'm using jonasal/nginx-certbot image for letsencript certificates generate.
docker-compose.yml:
version: '3'
services:
nginx:
image: jonasal/nginx-certbot:latest
restart: unless-stopped
environment:
- CERTBOT_EMAIL=your@email.org
env_file:
- ./nginx-certbot.env
ports:
- 80:80
- 443:443
volumes:
- nginx_secrets:/etc/letsencrypt
- ./user_con ...
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 ...
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.

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 ...
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.
/srv/www1/docker-compose.yml
:
nginx:
image: nginx:mainline-alpine
container_name: www1
ports:
- "69.69.69.1:80:80/tcp"
- "69.69.69.1:443:443/tcp"
/srv/www2/docker-compose.yml
:
nginx:
image: nginx:mainline-alpine
container_name: www2
ports:
- "69. ...
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 <my.host>
HostName <my.host>
ProxyCommand socks-connect -S <socks-user>@<socks-host>:<socks-port> %h %p
Port <ssh-port>
User <ssh-user>
IdentityFile ...
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: 172.20.0.1, server: www.mysite.local, request: "GET /api/items HTTP/1.1", upstream: "http://172.20.0.3:3000/api/items" ...
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 ...
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 ...

Logged in my intranet server via SSH on IP 10.10.245.209 (port 22 of course)
Created a docker-compose.yml:
version: '3.8'
services:
php-apache-environment:
container_name: php-apache
image: php:8.0-apache
volumes:
- ./php/src:/var/www/html/
ports:
- 80:80
And in ./php/src I have index.php
:
<?php
echo 123+123;
I use docker-compose up -d
in the current directory, an ...
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 ...
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: ...