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.

3896 questions
33
votes
9 answers

Clearing/Deleting Docker Logs

On our docker implementation on GCE, we are running out of space on the root file system. Since images themselves are stored on a separate 1TB volume, the images themselves shouldn't be the problem. One candidate are the centralized logfiles that…
mgmonteleone
  • 453
  • 1
  • 4
  • 7
32
votes
7 answers

Creating a docker mysql container with a prepared database scheme

I want to create a docker image on top of the mysql one that already contains the necessary scheme for my app. I tried adding lines to the Dockerfile that will import my scheme as a sql file. I did so as such (my Dockerfile): FROM mysql ENV…
Tom Klino
  • 601
  • 1
  • 7
  • 14
31
votes
4 answers

Docker daemon doesn't start on boot on CoreOS

I have a vanilla install of CoreOS (835.9.0) and it doesn't start the docker daemon on startup. It only starts when I SSH in and do eg docker ps. How can i make the docker daemon automatically start on system boot? When i say the docker daemon, i…
Chris
  • 1,201
  • 5
  • 15
  • 17
31
votes
3 answers

How to get php-fpm to log to stdout / stderr when running in a docker container

I have php-fpm in a docker container and in the Dockerfile I edit the fpm config file (/etc/php5/fpm/pool.d/www.conf) to set up access logs to go to /var/log/fpm-access.log and error logs to go to /var/log/fpm-php.www.log: # Do some php-fpm config #…
Tom
  • 4,157
  • 11
  • 41
  • 52
31
votes
5 answers

Send mail from Docker container with host's Postfix

I am running an Ubuntu 14.04 (Linux) server. I have installed and configured Postfix and OpenDKIM very nicely on the server; I can send emails to myself with commands such as echo hi | sendmail root, and postfix/opendkim will add headers such as…
David Grayson
  • 471
  • 1
  • 4
  • 10
30
votes
4 answers

No network connectivity to/from Docker CE container on CentOS 8

I just installed the latest release of docker-ce on CentOS, but I can't reach published ports from a neighboring server and can't reach the outside from the container itself. Running a plain vanilla CentOS 8 with NetworkManager and FirewallD…
Saustrup
  • 1,183
  • 1
  • 8
  • 12
30
votes
6 answers

Apache in Docker: How do I "access.log"?

I'm just getting started with Docker and richt now I'm trying to figure out how to set up my first dockerized Apache 2 / PHP environment. Up to now I have been using full Linux VMs, where I used log-files being written to /var/log/apache2, then use…
BlaM
  • 3,816
  • 5
  • 26
  • 27
30
votes
4 answers

How can I run a full OS in a Docker container, without specifying a command?

I'm following the CoreOS Docker Documentation and it mentions starting containers with commands like: docker run someImageName /bin/somebinary Where someImageName is an image. When /bin/somebinary exits, the image will no longer be running. I would…
mikemaccana
  • 3,070
  • 5
  • 24
  • 29
29
votes
4 answers

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" 6 seconds ago Up 6 seconds …
stackdave
  • 415
  • 1
  • 4
  • 8
29
votes
5 answers

chmod not working correctly in Docker

I'm building a Docker image for my Symfony app and I need to give permission to apache server to write into cache and log folders #Dockerfile FROM php:7-apache RUN apt-get update \ && apt-get install -y libicu-dev freetds-common freetds-bin…
storm
  • 393
  • 1
  • 3
  • 9
27
votes
1 answer

Can I use AWS ECR image directly in my Dockerfile?

In a typical dockerfile, there is usually this line From ubuntu:16.04 which enables pulling an image from docker repository. Now I have built my own image repository: The repositiory URI is: 1234567890.dkr.ecr.us-west-2.amazonaws.com/mycompany As…
Anthony Kong
  • 2,976
  • 10
  • 53
  • 91
27
votes
2 answers

curl (56) Recv failure: Connection reset by peer - when hitting docker container

From an AWS ec2 instance (which runs docker), I am trying to curl my docker container-hosted web service. Given: [ec2-user]$ docker ps CONTAINER ID        IMAGE                                                                COMMAND                …
Kevin Meredith
  • 1,119
  • 2
  • 14
  • 21
26
votes
7 answers

Kubernetes always gives 503 Service Temporarily Unavailable with multiple TLS Ingress

I have a kubernetes cluster setup by kops on Amazon Web Services I have a 2 sites setup. One is secured via SSL/TLS/https and the other is just http. Both are Wordpress sites. Domains changed to protect site identity Ingress config: apiVersion:…
Greg Pagendam-Turner
  • 873
  • 2
  • 12
  • 19
26
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
  • 401
  • 1
  • 4
  • 9
25
votes
5 answers

Docker turn anonymous volume into named volume

I have tried out a docker image using the docker command line without specifying names for volumes. Now I found that I want to continue using this container/image but by defining the container in docker compose. What is best practice for keeping the…
freiheitsnetz
  • 363
  • 1
  • 3
  • 7