Questions tagged [docker]
Docker is an open source project that automates the deployment of applications inside software containers.
1,781
questions with no upvoted or accepted answers
10
votes
0
answers
3k
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
...
8
votes
0
answers
2k
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 (...
7
votes
1
answer
4k
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 ...
7
votes
2
answers
5k
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 ...
7
votes
0
answers
2k
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 ...
6
votes
0
answers
2k
views
Route host through a docker openvpn container
I am new to networking so I am trying this for the first time. I created an openvpn docker that connects to a VPN server. Running wget -q -O - https://api.myip.com inside the docker container confirms ...
6
votes
0
answers
8k
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 ...
6
votes
1
answer
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
1
answer
5k
views
Docker container unable to connect to one specific external IP, yet host can
This is a puzzler, and I'm hoping that by writing a StackOverflow question, I gain some fresh insights.
In a nutshell, I'm trying to figure out why I can access https://sts.nih.gov from a host machine,...
5
votes
0
answers
2k
views
Possible to VNC/RDP into Docker Windows Containers with GPU passthrough?
Use-case: Automated QA of video games
Within the past 6 months it seems Microsoft and Docker have put a lot of effort to enable GPU passthrough for docker windows containers.
GPU Acceleration.
GPU ...
5
votes
0
answers
2k
views
Ports exposed by docker container are shown as filtered - unable to connect
I am working on a fresh server installation of Ubuntu 20.04
I started a sample nginx by running docker run --rm -p 80:80 nginx
Port 80 appears to be open on the machine, I cant curl the nginx default ...
5
votes
3
answers
3k
views
Best way to log to two different CloudWatch log streams from an ECS container?
We are running our services on AWS's ECS platform, and we send our logs to AWS CloudWatch.
We have two types of logs, any container can produce either type:
the usual application logs (access, error,...
5
votes
1
answer
189
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
0
answers
602
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 ...
5
votes
0
answers
5k
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 ...
5
votes
0
answers
488
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
0
answers
5k
views
Is there a way to flush docker's embedded dns cache?
I'm working in an environment where sometimes the DNS server flakes out and tells you it can't resolve a host (eg. lookup of "github.com" fails). It's transient, and usually recovers fairly quickly. ...
5
votes
0
answers
2k
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
1
answer
2k
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 ...
5
votes
2
answers
3k
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
0
answers
4k
views
NGINX 502 Bad Gateway error inside Docker container
I haven't had any issues with my Docker container or NGINX until today where I am getting a random unexpected 502 Bad Gateway error even though I have made no changes to my configuration files, Docker ...
4
votes
0
answers
4k
views
docker-compose `restart: always` randomly not working
I administer a few Debian servers with Docker CE installed and docker-compose orchestrating several services (roughly 20 containers per machine)..
Every single service is configured with restart: ...
4
votes
0
answers
1k
views
systemd-udevd spams systemd-udevd[1523120]: veth20996a5: Failed to get link config: No such device
I have setup my server logging with graylog and now I see that my logs are being spamed by level: 3 errors like these:
systemd-udevd[1523120]: veth20996a5: Failed to get link config: No such device
I ...
4
votes
1
answer
8k
views
Make Docker listen to the IPv6 address of server, forward IPv6 requests to right container
My server is running on both IPv4 and IPv6. Docker is running on (local) IPv4 addresses (ie 192.168.100.1/24). I did not enable IPv6 inside daemon.json as I understand that to be rather buggy and ...
4
votes
0
answers
2k
views
Nginx/Docker - ... directive is not allowed here
I have a problem with Nginx in my Docker project.
I know, there are a lot of similar posts here but non were able to help me.
I'm using Nginx with Docker and my Website works, but I wanted to add some ...
4
votes
0
answers
2k
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, ...
4
votes
1
answer
143
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
0
answers
1k
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 ...
4
votes
1
answer
16k
views
Docker Compose and multiple subnets
I'm struggling with Docker Compose (version 2 or 3).
I'm trying to add multiple subnets, so various services can reach each other, but get assigned IPv4 addresses from different subnets.
This is my ...
4
votes
0
answers
2k
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 ...
4
votes
0
answers
180
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
1
answer
2k
views
Docker user namespacing and sudo
I am trying to get a Docker container working with using the user namespacing feature and sudo. If I create the container with the -u flag set to a random UID, then sudo doesn't work, and you get ...
4
votes
0
answers
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
1
answer
3k
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
1
answer
2k
views
Running Gitlab CI runner with Docker on OS X as service
I have a Mac Pro 2012 (OS X 10.11) which I'm using as a server, set up with Docker for OS X and the official gitlab CI runner installed according to https://docs.gitlab.com/runner/install/osx.html.
...
4
votes
0
answers
499
views
How can I find the docker-machine network adapter name for a docker container?
I would like to introduce network variability into docker containers. Specifically, I would like to be able to run commands such as:
sudo tc qdisc add dev vethecb732a root netem delay 500ms 400ms ...
4
votes
1
answer
1k
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
1
answer
2k
views
Docker on Mac and Linux issues with permissions
I'm having a problem with the permissions of files created on shared volumes (this is unfortunately a common issue). When I run the following on linux (ubuntu) the file created ends up being owned by ...
4
votes
0
answers
266
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
1
answer
1k
views
Enabling IPv6 for docker breaks hosts IPv6 connectivity resulting in neither having IPv6 connection
Preface: I am newbie in both Docker and networking stuff, especially, IPv6. Am a software developer, not system/network administrator.
I am running Arch on Linode and am looking to set up Docker with ...
4
votes
0
answers
948
views
AWS ElasticBeanstalk: container keeps restarting
I'm trying to deploy a multi-container docker Elastic Beanstalk cluster on AWS and my situation is;
I have 7 docker containers, six of which are Scala applications each
listening on port 9000 for ...
4
votes
0
answers
112
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
0
answers
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
1
answer
305
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
1
answer
143
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
1
answer
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
0
answers
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
0
answers
347
views
TCP retransmission inside of docker network
Just lately our server started experiencing increased CPU usage by the php(Symfony) and mysql processes. For quite some time we been trying to find the cause and we found out that we have big amount ...
3
votes
0
answers
123
views
How can a process "lose" it's connection to stdout?
I'm running the following script in my linux devcontainer (ubuntu 20:04), running on a popos host:
nohup ./scripts/build/_build-server --compile --watch > /home/dark/app/rundir/logs/build-server....
3
votes
0
answers
646
views
How to bridge TAP device to overlay network?
I would like to allow OpenVPN users to reach all Docker containers that are part of Overlay network as if they were in the same LAN. The simplest example is 3 containers distributed on 2 hosts, and ...