Questions tagged [docker]

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

1,391 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
2answers
4k views

Containerized PostgreSQL with data on a distributed file system

I am curious if somebody is actually running PostgreSQL in a container in production on some form of distributed file system - GlusterFS preferably, or anything. I am currently running Mesos/Marathon....
8
votes
2answers
1k views

Preloading docker images with an ISO for redistribution

We are developing an app that is to be deployed on site to various installations (not cloud). Our OEM partner is asking us to provide them with an ISO to be able to quickly provision new servers. Our ...
7
votes
1answer
5k views

Nginx reverse proxy in docker container - wrong IP logged

I am running Nginx in a Docker container as a reverse proxy using the configuration below. It basically redirects the request to another docker container running on the same machine Problem The ...
6
votes
0answers
923 views

connect to tightVNC in a windows container

There are plenty of resources online about using VNC with a linux container, but none that I can find for windows containers, so I thought I'd give it a crack. I can get the tightVNC server to start (...
6
votes
2answers
2k views

Creating a docker container from a capistrano deploy

I'm having a bit of a difficult time understanding how I can leverage my existing infrastructure code with Docker. I have a Ruby on Rails app that uses capistrano to push out deployments. I want to ...
6
votes
1answer
3k views

docker network freezing randomly

Sometimes , all network's of my dedicate server is freezing (ssh also not working). it's randomly repeated. OS: Ubuntu 14.04.3 LTS On server installed docker containers, and i see in dmesg logs: [...
5
votes
2answers
3k views

AWS ECS service not starting any tasks

I've set up a cluster, container, task and service on ECS. After I created the service, it appears to be running with '3 desired tasks', however no tasks are being created as pending or running. ...
5
votes
1answer
91 views

High Network I/O Between Docker Swarm Managers

Network Traffic We run Docker Swarm with 3 manager nodes and 16 worker nodes. The network I/O between two of the three manager nodes is very high. To illustrate this, here is the output from iftop ...
5
votes
2answers
2k views

Route Docker container traffic through another container

I'm trying to route tcp traffic of container B (10.10.1.2, custom binary using mysql and running on port 4242) through container A (10.10.1.3, haproxy, setup in transparent proxy mode) to the outside ...
5
votes
0answers
337 views

Updating to latest Docker images in Elastic Beanstalk Multicontainer

I'm running a site on Elastic Beanstalk using a multi container set up. I'm wondering what is the preferred strategy to pull in the latest images. On the CI server, after successful commits to master,...
5
votes
0answers
1k views

Consuming multiline json in fluentd

I am new to fluentd. I have applications that run in Docker containers. They are Java apps that log in JSON format. The JSON messages are usually split over multiple lines. I would like to use the ...
5
votes
1answer
1k views

Access to service in Docker container connected to VPN

I set up a Linux server (VirtualBox VM for now) In that server I run a Docker container containing two things: An app with web interface on certain port Open VPN Client I can access that app (from ...
4
votes
1answer
106 views

Python 3.6.3 virtual environment issue in CentOS7 - “Error: Could not connect to Docker (is it running?)”

I have a virtualenv issue in my CentOS7 VM: Checking for virtualenv... Activating virtual environment /home/crimson/venv/python3 /home/crimson/venv/python3/myvra.json matches /home/crimson/venv/myvra....
4
votes
0answers
314 views

Docker - Is it possible to create an IPv6-only bridge network?

Is it possible to create a custom bridge network that only has IPv6 address? When I try to create a custom bridge network in the following way: docker network create --driver bridge --ipv6 --subnet ...
4
votes
0answers
3k views

Run openvpn inside docker and use as gateway for internet for other networked devices

I am trying to run tunnel all my network traffic on my LAN via an OpenVPN client running inside a docker container. My router and default gateway is running on 10.10.10.1 I have OpenVPN running on ...
4
votes
0answers
3k views

Adding windows capabilities to Windows server core running in docker

I am running the microsoft/windowsservercore:1803 in docker: docker run -it microsoft/windowsservercore:1803 inside it, I start powershell and run the Get-WindowsCapability cmdlet and get the ...
4
votes
0answers
154 views

Single partition mounted to multiple directories with different files

I have a systemd mount for a single partition which results in three different directories being mounted. The file /etc/systemd/system/var-lib-docker.mount [Unit] Description=Mount LSSD Volume at ...
4
votes
0answers
1k views

Docker Community Edition for production environment?

I was planning to use docker in a production environment. Now I see Docker Inc. differentiates strongly free and paid versions with the Community and Enterprise Editions. This sentence about CE is ...
4
votes
1answer
2k views

Restrict all docker outbound connections

Is there a way to block my docker containers from making outbound connections? In development, I don't want my app container accidentally connection to my live server. Fixing the credentials is in ...
4
votes
0answers
1k views

Docker container crashing ubuntu host

Very unexpected, but briefly if i run a docker container host becomes unresponsive, no in/out, can't ping it, only hard reboot works. DMESG, sys and kernel logs doesn't show anything obvious ...
4
votes
0answers
1k views

How to estimate storage and traffic used for docker images in AWS ECR?

I'm trying to esimate monthly cost of using AWS ECR. It will consist of: outgoing traffic cost (downloading images) and storage cost (storing images in ECR). Let's assume, that: We are building some ...
4
votes
1answer
2k views

Make SSH server to forward connection per user

Is there any way to force OpenSSH (or create a proxy of some kind) to forward one user to one machine and another user to another machine just by the username that he (or she) provided? I've got ...
4
votes
1answer
900 views

How to configure Spark client running in a Docker container for two-way communication with a remote Spark cluster?

spark-submit seems to require two-way communication with a remote Spark cluster in order to run jobs. This is easy to configure between machines (10.x.x.x to 10.x.x.x and back) but becomes confusing ...
4
votes
1answer
6k views

How to change config file of nginx runing via docker

I have installed sharelatex from this image https://github.com/sharelatex/sharelatex-docker-image via docker on Windows 7 with this command line $ docker run -d --name sharemongo mongo:latest $ ...
4
votes
2answers
2k views

How does docker stats output relate to top output?

I've got a process running in a Docker container on Linux, with a 2GByte memory limit. (The container is started with docker run --memory=2g.) Here is what top says about it after it's been running ...
4
votes
0answers
240 views

How to disable write barrier on docker thinpooldev?

My server has very low disk performance if write barrier is enabled. As it has a disk controller with battery for the cache it is safe to add the "nobarrier" option to /etc/fstab. This makes a huge ...
4
votes
0answers
109 views

Docker image only works on one Fedora server?

I have two groups of servers, a development server running a docker repo (F22 Server) and a few production servers running far less (F22 cloud/atomic) in Hyper-V. I have built an image for the UniFi ...
4
votes
0answers
1k views

Coreos auto scaling with docker and fleetctl on AWS

I spent a lot of time evaluating different ways to deploy an application to the cloud (let's assume AWS for this question) in the last few weeks but couldn't really find a satisfying solution. We ...
4
votes
1answer
269 views

Block level backups of Docker volumes

I'm new to Docker and trying to evaluate methods and processes for doing backups on a CentOS host and container. From reading numerous articles about Docker backups, I've come to the following ...
4
votes
1answer
126 views

Docker-based infrastructure testing tool

I am currently trying to migrate a VM-based infrastructure to a Docker-based one and take the chance to add behavior testing to this infrastructure. So I aim to have all changes I make to the base ...
4
votes
1answer
1k views

Dockerun.aws.json referring to bucket of another account

I have the following Dockerrun.aws.json: { "AWSEBDockerrunVersion": "1", "Authentication": { "Bucket": "bucket-of-another-aws-account", "Key": "docker/.dockercfg" }, "Image":...
4
votes
0answers
4k views

Docker PHP-FPM & NGINX

I'm having an issue with my containers communicating to each other. The linking of the containers is working but the php-fpm process isn't working. php container = 172.17.2.106 nginx container = 172....
3
votes
1answer
144 views

NFS/krb5 authentication server lookup fails due to wrong principal name

When mounting an NFSv4 with Kerberos, authentication fails and krb5kdc.log shows the wrong principal name for the NFS server. LOOKING_UP_SERVER: ... host/nfsclient.internal.domain.tld@IPA.DOMAIN.TLD ...
3
votes
0answers
868 views

Alpine Linux timezone doesn't stick if tzdata is removed

This used to work to set the timezone. I have a container on Alpine 3.9.4 where it worked: RUN apk add --no-cache tzdata ENV TZ America/Chicago RUN apk del tzdata I'm now creating a Docker container ...
3
votes
0answers
165 views

Best way to add “Virtual Path” to application running inside docker container

Current Situation I have 2 applications running inside Docker Container, one is an angular app and the other is a .Net Core WebApi. Each one has a binded port, (WebApi is running on 8090 host port, ...
3
votes
0answers
431 views

Connect from Windows host to QEMU inside Docker

I am trying to establish a connection between Windows 10 running Docker container (Linux), which runs QEMU to host a QNX OS. This picture should make it more clear: Structure I would like to ...
3
votes
2answers
4k 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 ...
3
votes
0answers
435 views

Docker + IPv6 - what is the best practice?

I want to build IPv6-ready services with Docker that can reach v6 hosts on the external network and can be reached from the external v6 network. I'm really confused with all that right now, so I want ...
3
votes
0answers
515 views

How does a unix socket shared through a Docker volume work compared to TCP?

I'm wondering how Docker manages a unix socket when it's shared across containers and how it affects the performance compared to just using TCP. What I'm trying to accomplish is setting up docker-...
3
votes
1answer
4k views

Azure Web App (Linux): “Error: Container didn't respond to HTTP pings on port: 8080” - when using: “start”: “pm2 start server.js”

My App Service Linux instance crashes if my node app is using the start script: "start": "pm2 start server.js": 2019-04-15 11:36:34.432 ERROR - Container crime-digest__6ea5_0 for site crime-...
3
votes
0answers
912 views

Use a docker container as a proxy to use a VPN

Because of this problem, I'm not able to use the VPN on my host machine and have access to the internet on the containers at the same time. To solve the problem, I want to run a container with access ...
3
votes
0answers
6k views

Installing Chromium on Alpine Linux, strange error

I have a Dockerfile setup to install Alpine and Chromium. A few weeks ago the package was working properly and I was able to build with it properly however recently I'm having trouble with the build ...
3
votes
0answers
365 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 ...
3
votes
0answers
114 views

Limit Docker container access to specific domain

Can I limit docker container's internet access to specific domains using docker and docker-compose configs, or do I have to fiddle with usernames and external firewall?
3
votes
0answers
2k views

bind mount /proc in Docker container with user namespaces enabled

My dockerd (CentOS7: 17.12.0-ce, build c97c6d6) is running with user namespaces enabled for better isolation. Now I build a image which is supposed to read for monitoring purposes also from /proc of ...
3
votes
0answers
390 views

Docker Swarm - database connection reset by peer

I am running a Spring Boot application with Docker Swarm and I use Postgres for database. When I run both of them as Docker service, database connection fails consistently and randomly (as you can ...
3
votes
0answers
718 views

How to connect to ikev2 vpn from docker container using bridge net mode?

I'm trying to connect to a VPN from inside a docker container via ikev2, Ubuntu host. If I try the following: docker run -i -t --privileged --net host --entrypoint /bin/bash ikev It then do ipsec ...
3
votes
0answers
1k views

Docker-Swarm with RabbitMQ Autocluster

We are facing the following problem: How to run RabbitMQ in a Docker-Swarm with persistent Data. Currently we have the following setup in place: Docker-Swarm 3 Nodes GlusterFS as replicated ...
3
votes
2answers
5k views

Cannot connect to MongoDB in docker on Windows host

I have a similar problem discussed in Cannot connect to MongoDB in docker. Windows host Docker Toolbox, so it is using VirtualBox I used docker run --name mongo2 -p 127.0.0.1:27017:27017 mongo to ...
3
votes
0answers
219 views

The strangest docker fault I've ever seen

I am using Docker with docker-mailserver on one of my servers. Very strange trouble appeared after migrating some services from legacy Debian Jessie server to Ubuntu 16.04 LTS server. Parameters of ...

1
2 3 4 5
28