Questions tagged [docker]

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

Docker is an open source project that automates the deployment of applications inside software containers. Docker extends a common container format called Linux Containers (LXC), with a high-level API providing a lightweight virtualization solution that runs processes in isolation. Docker utilizes LXC, cgroups, and the Linux kernel itself. Unlike traditional virtual machines, a Docker container does not include a separate operating system, instead it relies on the operating system’s functionality provided by the underlying infrastructure.

4147 questions
27
votes
3 answers

Amazon ECS (Docker): binding container to specific IP address

I'm playing with Amazon ECS (a repackaging of Docker) and I'm finding there's one Docker capability that ECS does not seem to provide. Namely, I would like to have multiple containers running in an instance, and have requests coming in to IP…
Mark R
  • 411
  • 1
  • 4
  • 9
26
votes
4 answers

Docker breaks libvirt bridge network

This issue is driving me crazy. I run a fresh install of Ubuntu 18.04, with: ufw to manage the firewall a br0 bridge lxd and libvirt (KVM) I tried stock docker.io package and packages form docker's own deb repository. I want o be able to deploy…
Laurent
  • 406
  • 1
  • 4
  • 14
26
votes
5 answers

How do I expose the docker API over TCP?

I am using portainer and am unable to manage remote endpoints. I tried using the command line to connect to remote docker nodes, but got a message Cannot connect to the Docker daemon at tcp://:. Is the docker daemon running?. Yes,…
Lord Loh.
  • 1,089
  • 3
  • 16
  • 25
26
votes
1 answer

Why does a Docker container running a server expose port to the outside world even though said port is blocked by iptables?

I'm having a problem with MySQL running inside a Docker container. My testing image is built from the following Dockerfile: # See: https://index.docker.io/u/brice/mysql/ FROM ubuntu:12.10 MAINTAINER Joni Kahara # Because…
kahara
  • 675
  • 1
  • 6
  • 11
25
votes
4 answers

gcloud docker -- push results in login attempt failed with 404

I am trying to push a docker image to Google's container registry but keep getting a error about Docker login having failed. I run gcloud docker -- push gcr.io//test-image I get back ERROR: Docker CLI operation failed: Error…
ajmurmann
  • 439
  • 1
  • 7
  • 8
25
votes
2 answers

Is it a good idea to store Docker volumes in glusterfs?

I am currently thinking about migrating some of our servers and apps to a coreOS environment. One of the problems I see here is the management of persistent data as coreOS does not handle Docker volumes when moving a container to a new machine.…
Martin
  • 363
  • 1
  • 3
  • 8
24
votes
2 answers

How to decide between a docker volume container and a docker volume?

After reading the docs I found myself somewhat confused as to how best to manage productive application/service data. There seem to be 3 options: Simply map volume to host directory (i.e. -v argument for docker run) Create a docker container image…
dukeofgaming
  • 619
  • 1
  • 7
  • 15
24
votes
2 answers

Iptables rule-set so that a docker container can access a service on a host IP

I have troubles accessing a host private interface (ip) from a docker container. I'm fairly certain that it's related to my Iptables rules (or perhaps routing). When I add the --net=host flag to docker run, everything works as expected. Similarly…
Dynom
  • 251
  • 1
  • 2
  • 9
24
votes
2 answers

How to add a file to a docker container which has no root permissions?

I'm trying to add a file to a Docker image built from the official tomcat image. That image does not seem to have root rights, as I'm logged in as user tomcat if I run bash: docker run -it tomcat /bin/bash tomcat@06359f7cc4db:/usr/local/tomcat$ If…
nyi
  • 350
  • 1
  • 2
  • 7
24
votes
2 answers

Docker volume backup and restore

I'm using Docker to deploy some services on a CentOS 6.4 server, and I'm trying to figure out how to properly backup data they generate. For example, one of the services is a web application where users can upload files. For this container, I have a…
fcoelho
  • 343
  • 1
  • 2
  • 6
23
votes
3 answers

Mount a SSHFS volume into a Docker instance

I use SSHFS to mount a remote filesystem on my host and I want to be able to access it from inside a Docker container. I mount the remote filesystem sshfs -o idmap=user,uid=$(id -u),gid=$(id -g) user@remote:directory /path/to/sshfs And, using…
Ralph
  • 333
  • 1
  • 2
  • 5
23
votes
6 answers

Systemd fails to run in a docker container when using cgroupv2 (--cgroupns=private)

I will attach the minimized test case below. However, it is a simple Dockerfile that has these lines: VOLUME ["/sys/fs/cgroup"] CMD ["/lib/systemd/systemd"] It is Debian:buster-slim based image, and runs systemd inside the container. Effectively, I…
Stephen
  • 343
  • 1
  • 2
  • 4
22
votes
1 answer

FreeBSD Jails or Docker instances

What are the main differences between jails on FreeBSD and Docker on Linux? Is one considerably more secure or more performant than the other? Jails are way older than Docker instances so the code itself could be considered more secure. But Jails…
Simba
  • 335
  • 1
  • 2
  • 12
21
votes
2 answers

How and where to configure pm.max_children for php-fpm with Docker?

In a Web application with Nginx and PHP-FPM, I've noticed moments of slowness and analyzing the logs, I found this message, which appears from time to time: [19-Nov-2017 19:24:09] WARNING: [pool www] server reached pm.max_children setting (5),…
lfalmeida
  • 313
  • 1
  • 2
  • 4
21
votes
6 answers

Fatal error: Can't open and lock privilege tables: Table storage engine for 'user' doesn't have this option

This error message shows up when I use ubuntu 16.04 and the latest mysql 5.7.19-0ubuntu0.16.04.1 in a Docker image. What could be done to fix this? To reproduce the error Get the Dockerfile: FROM ubuntu:16.04 RUN apt update RUN…
Wolfgang Fahl
  • 593
  • 1
  • 6
  • 14