Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [docker]

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

0
votes
1answer
11 views

Forwarding traffic from a host to a host's container

I have two hosts in a network 192.168.0.0/24: Host A 192.168.0.15 Host B 192.168.0.13 And there is a remote ssh tunnel from B to A: ssh -R 192.168.0.13:8080:192.168.0.15:8002 192.168.0.13 -N and ...
0
votes
0answers
4 views

host + docker iptables rules confusion

I have an Ubuntu 16.04 running Docker and I am attempting to secure this server such that it only accepts: SSH connections HTTP connection HTTPS connection I know to add iptables policies before ...
0
votes
0answers
22 views

Mounting NFS servers with Docker/Kubernetes containers, without using insecure mode on the server

I'm trying to containerize an web application. As part of its operation, it requires access to four separate NFS mount located on different hardware. Two of the mounts live on a regular Linux box, but ...
0
votes
1answer
36 views

Docker + Nginx + PHP-FPM error: [emerg] 1#1: host not found in upstream

I have been on this error for 3 (full days) and still trying to figure out the issue and at the same time contemplating suicide :) I have a docker setup for LEMP stack that I cloned from this repo: ...
0
votes
0answers
4 views

loading neo4j dump in docker container

I am using docker to launch multiple instances of neo4j instances for my project. I have a requirement that I have to load a graph dump to one of my neo4j docker container and I have to do it again ...
0
votes
1answer
9 views

Running Apache not as root for HTTPS

I ma trying to make a Docker container image with an Apache server that handles TLS mutual authentication. Since this is a container Apache can be made to listen some high-numbered port instead of 443,...
0
votes
0answers
17 views

MariaDB cluster fails to create root user on second node

When I try to create a two node MariaDB cluster in Docker on Windows, I get this error: ERROR 1396 (HY000) at line 8: Operation CREATE USER failed for 'root'@'%' For the first node I run this ...
0
votes
0answers
13 views

Installing ca-certificates in a chroot in docker hangs

I'm trying to debootstrap a devuan install in a docker, which works fine as long as I don't include ca-certificates to the packages to be installed. Even if I wait for deboostrap to finish, and try to ...
-2
votes
0answers
23 views

How to architect ECS Fargate PHP App [on hold]

As Docker runs single process in foreground I use Supervisord to run both Nginx and PHP-FPM on a single container. What would be an alternative / right design for such stack? Should I have separate ...
0
votes
0answers
11 views

Adding a prefix to hostnames with docker compose?

I'm using docker compose to create a bunch of containers, and the internal hostname is the container ID; when each container registers its hostname in ... whatever (but consul in this instance) it's ...
-2
votes
0answers
43 views

Can you have subnets without network interface? [closed]

When I installed Docker, it automatically creates a docker0 bridge network, which, from what I understand, is simply a private subnet on my machine. When I run ifconfig, I see the docker0 network ...
0
votes
1answer
23 views

Windows and WSL docker-machine conflict

I have a windows 10 and I installed the WSL ubuntu 18.04 inside. Since the WSL can't use the docker due to virtualization, i ends up use my DigitalOcean droplet as my docker machine target. I follow ...
0
votes
0answers
11 views

See docker container logs on host while using gelf driver

I am using gelf as log driver for my docker container. In log options i provided udp endpoint. Now when i start the container, everything is working as expected. My question is, if it is possible to ...
0
votes
0answers
11 views

Redis Sentinel not respecting announce-ip option

I am attempting to create a redis-sentinel cluster using docker-compose on my system and have it visible to the host machine (this is to try and replicate an application that is going to use redis-...
0
votes
0answers
7 views

docker issues (mount folder and after restarting iptables)

I have issues when running docker for some SMTP services. Host server IP : public ip address Docker host: 192.168.1.1 docker container: 192.168.1.2 Host OS : Centos7 Docker image : Ubuntu 1) mount /...
0
votes
0answers
7 views

docker-proxy starts automatically : how to disable it?

Every time i start my system, i see my port 27017 being used by this process: x:~$ sudo netstat -tulpn | grep 27017 tcp6 0 0 :::27017 :::* LISTEN ...
0
votes
1answer
14 views

Can hosts join (i.e. be part of) more than one docker swarm?

It may sound a naive question, but I haven't found it stated anywhere: is there a way to use the same machines to run different service stacks? e.g. having Stack A: service X, service Y Stack B: ...
0
votes
0answers
15 views

Connection between containers fails with java.net.NoRouteToHostException: No route to host (Host unreachable)

I am using the docker-compose.yml from here. However, the connection bewteen the 2 containers (sonarqube to postgres) fails with the following error: sonarqube_1 | java.net.NoRouteToHostException: ...
2
votes
1answer
19 views

docker-compose no such service: myapp

I've run an image with: 'docker-compose up' With 'docker ps' i get: CREATED STATUS PORTS NAMES 55e1fd18acf1 simpleappnodedocker_web "node app.js" ...
1
vote
2answers
28 views

Issue with running a Forward Proxy Container and DNS Server Container on the same host

This is a home experiment with Docker, pi-hole (container) and wormhole proxy (container) running on the same host. My docker host's OS is RHEL 7.x. My original intent is to learn more about pi-hole ...
1
vote
0answers
19 views

Getting SSL to work with reverse NGINX proxy in front of two Docker containers

Been struggling with this for a couple of hours. I know I'm missing something simple here because everything works on my localhost as SSL with self-produced certs + it works totally fine on localhost. ...
0
votes
0answers
16 views

how to run docker image only on certain machines?

i,m trying to create a docker image which can be executed only via certain people. is there a way to make sure that your docker image can only be executed on a certain machine and if copied it wont ...
0
votes
0answers
7 views

Missing php-redis repository in docker debian stretch image

I'm missing the repository that includes the php-redis package. Inside my debian 9/stretch docker container I run the following: root@dcc82d674095 [19:36:46] [/var/www/html] -> # apt-get install ...
3
votes
1answer
71 views

Lightweight Docker orchestrator for single server

I am exploring using Docker for some components that are harder to package for the distro I'm using, or just outright more convenient to use that way. I have explored Kubernetes but since I'll be ...
-1
votes
2answers
22 views

How to map public domains to sites hosted in Docker on Synology NAS?

This question is about managing/administering the software of a server in a business environment, so I hope it is not off-topic. We plan to migrate some of our websites to Docker running on our ...
0
votes
1answer
12 views

SSH tunneling and running commands inside Docker image

I'm pretty new to Docker and have a docker image, I need to do following: perform SSH tunneling to three different addresses from inside the docker image that to the outside. Then, I need to run a ...
1
vote
0answers
19 views

docker compose containers not given access to host

I have a question very similar to this one: Iptables rule-set so that a docker container can access a service on a host IP where my containers are not being allowed to access the host. The problem ...
0
votes
0answers
8 views

Why do my HAProxy logs contain many entries with session termination state 'CD'?

I have an HAProxy instance in front of Nginx. HAProxy is listening in TCP mode so that Nginx can do SSL termination. In my logs I'm seeing lots of entries like this: x.x.x.x:37770 [03/Oct/2018:21:19:...
2
votes
0answers
25 views

nginx can open with path / but can not with a different path on server

I am trying to use nginx in a docker container. I created a configuration file that works with / but not with /team/soccer (I need this). In this case it goes to the site that is located on the server ...
0
votes
0answers
18 views

Apache forward proxy rewrite destination

I'm trying to setup Apache 2.4 as a forward SSL proxy so it can function as my main entrance point to Docker containers. The virtual host works when I send it an http address, but not for https. The ...
0
votes
1answer
29 views

Consul, vault and postgres containers don't communicate

I'm trying to set up Consul with Vault for secrets management for Postgres with Docker. Here is my configuration Dokcerfile: FROM python:3.6-slim ENV VAULT_VERSION 0.11.1 ENV CONSUL_VERSION 1.2.3 ...
1
vote
2answers
38 views

Dockerfile for postfix

I have tried to implement postfix in dockerfile, and it failed when i tried to send a mail saying (address resolved failure). Do i need to reconfigure the docker network or just the postfix main ...
0
votes
1answer
34 views

how to isolate kubernetes namespaces but allow access from outside

I have a Kubernetes cluster setup using kubeadm I'm trying to define a network policy which restricts access from outside the namespace but doesn't block access from outside (external IP) to elaborate ...
0
votes
0answers
26 views

How to create docker ingress network with ipv6 support

I am trying to figure out issue with my docker network setup, (docker containers give out blank ipv6 address) I am not able to reach the service over ipv6 on localhost, I have to use curl -4 http://...
0
votes
1answer
35 views

Latest docker image does not point to really latest image version from private local registry

I've created private local Docker registry using manual https://hackernoon.com/create-a-private-local-docker-registry-5c79ce912620 and pushed two versions of custom image to it. Then I deleted cached ...
0
votes
0answers
7 views

How can I bind an existing aws docker machine into a fresh docker-machine client?

I created a docker machine in AWS via the command docker-machine from a Windows shell, using the appropiate docker-machine driver and having the proper aws credentials. I now want to start and stop ...
1
vote
0answers
19 views

docker containers give out blank ipv6 address

I am trying to develop simple swarm service with docker, I am using below docker compose file version: '3.2' services: sessions: image: redis:4 ports: - 6379:6379 ...
0
votes
1answer
21 views

Docker - How Do I Point Domains To Containers?

In a traditional setup I'd have 3 servers each with a different subdomain pointed at them. My API on one server, frontend on another etc. But when using docker on a single server and have my services ...
1
vote
1answer
22 views

how to move docker-compose containers stack to another host

I have a project running on a host using docker compose. Can anyone advise me on how can I move the docker-compose containers to another host?
1
vote
1answer
34 views

Curl does not fall back to ipv4

I have gentoo build with ipv6 and ipv4 configured for localhost /etc/hosts # IPv4 and IPv6 localhost aliases 127.0.0.1 sunils-pc.homenetwork sunils-pc localhost ::1 sunils-pc.homenetwork ...
1
vote
4answers
85 views

Best solution for docker volume persistance [closed]

I'd like to setup proper way to persist docker volumes. Currently all our docker volumes are local only, so in case of server failure our data are lost. I'm thinking about buying two servers and ...
0
votes
0answers
20 views

EC2 Instance Freezes

I am experiencing sudden freezes in one particular instance. Here some details of the instance: Type: t2.micro Region/av. zone: us-west-2b OS: amzn-ami-hvm-2018.03.0.20180811-x86_64-gp2 (ami-a0cfeed8) ...
0
votes
1answer
40 views

Generate LetsEncrypt Certs to NFS share

Im trying to generate a letsencrypt wildcard cert to use on various websites (one FQDN, multiple subdomains). The plan is to save those certs on a NFS share I have to easily access them on various ...
2
votes
0answers
28 views

Should I use systemd or docker-compose to keep Docker containers running on my systems?

We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
0
votes
1answer
17 views

Should I bake the Jenkins config file for each Jenkins master into our custom Jenkins Docker image?

It's a bit uncomfortable for us to have a Jenkins Docker image that is used for 4 different Jenkins Master Servers with a different Jenkins configuration. We use an environment variable that loads ...
0
votes
1answer
23 views

Start command only works when run manually

I get the following error when installing PHP FPM: Creating config file /etc/php/7.0/fpm/php.ini with new version invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied ...
0
votes
0answers
5 views

Obsocuring data by mounting a bind mount or non-empty volume in Docker

What means please that sentence: If you mount a bind mount or non-empty volume into a directory in the container in which some files or directories exist, these files or directories are ...
0
votes
1answer
41 views

Static files are not found when running django + gunicorn + nginx on docker

I know it's well answered question but non of ones I've found seems to work for me. I have simple django project and I'm trying to run it on Docker with gunicorn and nginx. Below is my configuration ...
0
votes
0answers
14 views

Windows Containers: Can Administrator user inside a container access files outside that container?

Question about Windows Containers with Docker security model. Let's suppose that we have a Host operating system, Windows Server 2016 with Containers feature enabled, which we install Docker on. Let'...
0
votes
0answers
33 views

php-fpm in docker have FastCGI sent in stderr: “Primary script unknown” while reading response header from upstrea error

I trying to use docker to run my php-fpm I use this Docker Image mkaag/phpfpm this is my nginx config location ~ \.php$ { try_files $uri /index.php =404; fastcgi_pass php-upstream; ...