Questions tagged [docker]

Docker images, containers, hub, and everything related to the containerization platform

Filter by
Sorted by
Tagged with
9
votes
1answer
235 views

How to know where a docker image came from?

I have a Docker image on my system 12346789ABCD. Is there a way to know where it is coming from? Specifically, I would like to know if it was built locally or downloaded from a repository, and in ...
9
votes
1answer
1k views

Conflicting Kubernetes CPU usage & Docker Container Metrics

We recently switched over our production environment to Kubernetes. I'd like to enforce CPU limits on the containers. I'm getting conflicting CPU metrics that do not fit together. Here's my setup: ...
8
votes
2answers
9k views

Why does chown not work in RUN command in Docker?

I have the following docker-compose file: version: '2' networks: default: driver: bridge services: yii2-app: build: context: . dockerfile: ./Dockerfile-app ports: ...
8
votes
2answers
4k views

Why not use configuration management tool instead of Dockerfile?

I'm pretty new to Docker and configuration management tools. At first I started writing bash scripts to provision my Vagrant boxes for my development machines, but now I've switched to using Chef ...
8
votes
6answers
1k views

Cheapest and easiest way to run a periodic Docker process

I have a dockerized Python process that a client would like to run once or twice a month. It calls a number of Google APIs and stores the results in a Google Sheet. It does not accept network requests....
8
votes
2answers
796 views

How to cache third party resources in a build pipeline?

A build-pipeline often requires to access third party resources, aside from the source code of the artefacts it is meant to build. Each of these third party resources introduce a risk factor in builds,...
8
votes
1answer
351 views

How do I automate deployment to Docker with CircleCI?

My circle.yml file and my CircleCI account are set up to use Docker for testing already, but I'd like to move to continuous deployment upon a successful build. Here's what I have so far in circle.yml:...
8
votes
1answer
640 views

Should worker processes of web applications be placed in separate containers?

My setup is based on a Flask app that has a PostgreSQL and Redis database. In addition, a worker process is started to handle asynchronous tasks such as sending emails. I use Gunicorn to create ...
8
votes
1answer
1k views

How to manage Consul and its quorum in auto-scaling environments?

We have auto-scaling Docker environments in which we use Consul for service discovery. These environments can add or remove one instance every few minutes. Our early Consul testing showed that it was ...
8
votes
1answer
124 views

Strategy for deploying/hosting javascript-based static websites in containers

This comes up from time to time in several of our dev teams, without us having figured out the "right" way: We use a lot of react-based webapplications that "compile" into static websites that are ...
8
votes
1answer
474 views

Persistent Storage with Docker in Production - Which Solution and Why?

I've recently started working for a company that wants to break their monolithic SaaS application up into containerized microservices. I'm having a hard time grasping a fundamental part of persistent ...
8
votes
4answers
1k views

Debug Docker caching issues

I am trying to improve CI/CD performance and part of that is improving the caching behaviour of Docker builds. I find myself trying to debug what exactly invalidates the cache. Are there any ways to ...
8
votes
1answer
392 views

Automate custom docker image deployment on AWS

This question is related to my previous one - but a bit more descriptive. I am trying to build automate the generation and deployment of a docker container. The docker container is created with packer....
8
votes
2answers
2k views

Encrypting docker images (end to end); transporting over offline channels

We are developing and building docker images in our intranet, and need to deploy them to several hosts belonging to us (developers, internal testing, external testing and so on). Some of these are in ...
8
votes
1answer
976 views

What are best practices of deploying docker-compose using Ansible?

Ansible is used to deploy docker-compose on a system and subsequently start the container. When ansible runs from the local system, the docker-compose file is deployed using Ansible. When the code ...
7
votes
3answers
204 views

How to evangelize DevOps and tools in a low acceptance environment?

An evocative learning about innovative disruptive technology is that you might find out that not everybody is going to be excited about tools which can give you more productivity. To make this ...
7
votes
3answers
444 views

Who should write Docker files?

Once again company debate rages on who should write Docker files (including compose, interchangeable for this post). The scenario is common in my work (developer and consultant) and I wanted to know ...
7
votes
1answer
8k views

What is the difference between php-cli and php-fpm, why 2 php variants and why choose one or the other?

Looking at https://hub.docker.com/_/php I can see reference to php-cli and php-fpm. Now, I am aware of the concepts of PHP FPM - Fast CGI Process Manager. I'm also aware the PHP can be run in the ...
7
votes
1answer
498 views

How does Vagrant differ from Ansible and Docker?

I understand that Ansible is a Configuration Management (CM) tool for orchestrating, deploying (and continuously upgrading) software and conf via a special YAML format created for that software, and ...
7
votes
1answer
3k views

What are reasons for using HashiCorp's packer to build docker images instead of using docker build?

I have read https://www.packer.io/docs/builders/docker.html, but I do not see the advantage of using Packer over docker build or docker-compose up --build for building docker images
7
votes
3answers
6k views

Unable to mount docker folder into host using docker-compose

Here I created docker container which use the mariadb image and created three volumes as below. docker-compose.yml version: '2.0' services: mariadb: image: mariadb:latest restart: always ...
7
votes
3answers
1k views

How to deploy multiple dependent micro services

We want to deploy multiple microservices on AWS ECS. The issue that we need to solve is how to deploy them in an atomic way: Let says we have the front-end services which requires the user service ...
7
votes
2answers
1k views

How do you monitor Node Micro services running inside of Docker Containers?

This article about "How healthy is your Dockerized application?" explains the trouble with monitoring, but it doesn't provide any good examples of how to actually monitor a microservice inside of the ...
7
votes
2answers
5k views

MSSQL and AD in a Docker Container

I am attempting to use Active Directory authentication with SQL Server on Linux running inside the official MSFT Docker container for MSSQL (https://hub.docker.com/_/microsoft-mssql-server) I am in ...
7
votes
1answer
736 views

How to implement Continuous Deployment in Angular, PHP API and Ansible projects?

I am working on an Angular2 project with Yii2 (PHP/MySQL) as its API point. We will need to deploy the Angular app in different languages for different customers (using AOT compilation from angular-...
7
votes
1answer
3k views

How to configure gitlab-runner to run in the same docker host as gitlab?

I have a gitlab instance running in a docker container. Now I would like to setup gitlab-runner on the same host. Both are running: docker container ls CONTAINER ID IMAGE ...
7
votes
2answers
674 views

Best way to launch 100 identical Docker machines on AWS?

I need to do some large scale testing on a system. The system consists of 2 main parts: Manager and Nodes. There will be only one manager server, but 100 nodes. Both the manager and nodes are Docker ...
7
votes
2answers
764 views

What are the pros and cons of running application testing during vs. after a docker build?

Our dockerfile creates the application environment (e.g. env variables, install libraries with apt-get etc.). It also pulls and copies the python application code from its git repo. However, we are ...
7
votes
1answer
3k views

What are alternatives for Docker in Docker (dind) usage for Jenkins slave running in container?

When using Jenkins slave running in container, what are alternatives or "safe" (in terms of security) implementations for Docker in Docker. Architecture example: Jenkins master running as Docker ...
7
votes
2answers
6k views

How to pass a /dev/disk device on macOS into Linux Docker?

I've connected external HDD via USD on macOS, and I'm running Ubuntu's Docker container as: docker run -it --device=/dev/disk3 --privileged ubuntu bash but the device is not present in the container:...
7
votes
1answer
1k views

Assign DNS name to Docker Swarm containers with public IPv6

I'm trying to understand how I would set up a Docker container (running in Swarm mode) with publicly available IPv6. I know Docker Swarm uses mesh routing, but I don't quite understand how I can ...
7
votes
3answers
559 views

Continuous Deployment best practices for managing application configuration

My CD pipeline: Get Docker image (created and pushed during CI stage). Copy docker-compose .yml template to target server. Run the app. Let's go straight to the 3rd point. I can run the app using ...
7
votes
2answers
562 views

How to move disk image in the command line?

As answered in this questions: Does Docker on MacOS support tmpfs? In order to run in memory docker, I need to move docker volumes to ramdisk. In macOS I can do it through docker preferences. However, ...
7
votes
1answer
1k views

Flask, Gunicorn and Docker Swarm

so I have this nice rest API implemented in Flask running in docker and I am thinking about scaling. This is how I progressed: CMD ["flask", "run", "--host=0.0.0.0"] and docker run -d -p 5000:5000 ...
6
votes
1answer
6k views

docker-compose healthcheck for rabbitMQ

I'm trying to run rabbitMQ using docker-compose, but the service is always starting or unhealthy. rabbit is running fine, so I suspect there is something wrong with my health check. Running the ...
6
votes
2answers
6k views

Why should you do port mapping for docker containers?

I have been using docker for a few months and I am just a developer not a DevOps or a networking person. However, I came across a docker-compose which maps an external port to an internal port. ...
6
votes
2answers
3k views

Stress testing for docker container

I want my container to die under high pressure to check monitoring and alerting as well as compose autorestarts. What is best way to simulate heavy load within docker container. I've tried so far ...
6
votes
4answers
376 views

DevOps practice on AWS instances

I am new to DevOps, started learning the different tools. I would like to practice all of the tools like Jenkins, Chef, GIT, Puppet, Ansible, Docker, Kubernetes, etc . My question is If I would like ...
6
votes
1answer
444 views

Does the "cattle not pets" distinction apply as equally to machine instances as to containers?

There is a great discussion of the Cattle vs Pets distinction from Randy Bias here. Martin Fowler talks about a SnowFlakeServer. In a series of talks, Adrian Cockcroft talks about how they moved ...
6
votes
1answer
2k views

What's the relationship between ContainerD and Docker?

I'm aware that Kubernetes uses containerd internally and that containerd is part of Docker. Does that mean that Kubernetes only uses certain parts of Docker to provide orchestration of containers? ...
6
votes
1answer
8k views

How to pull a docker image from a private docker registry using Helm?

When the default values.yaml is inspected it is not clear how to pull a private docker image. # Default values for sonatype-nexus-apt. # This is a YAML-formatted file. # Declare variables to be ...
6
votes
3answers
4k views

Developing inside a Docker image?

Every time I onboard a new person on my team I have to go through the same routine of installing everything, figuring out what changed since last time we onboarded someone etc. Not fun. I've heard ...
6
votes
3answers
29k views

docker "Cannot mkdir: Permission denied"

I'm trying to run wordpress inside docker. I've been following this tutorial : https://www.sitepoint.com/how-to-use-the-official-docker-wordpress-image/ But when I run this command : docker run -e ...
6
votes
1answer
226 views

What can Vagrant, Puppet, Docker, Chef do for a Full stack Web developer?

First of all let me say that I'm aware of related questions here in SO: Vagrant, Docker, Puppet, Chef Vagrant + puppet + docker chef-server - chef-solo - vagrant - puppet... which is correct for me? ...
6
votes
1answer
10k views

Best practice for Postgres setup with docker-compose

I have a docker-compose script which starts a Postgres container and an app container like so db: image: postgres:10.6 restart: always ports: - 5432:5432 app: image: test_app:latest ...
6
votes
1answer
7k views

How to populate docker volumes in a build step to be used by a different container

I currently have a Docker compose based web app that uses Nginx as a reverse proxy that forwards traffic to a Flask and Grafana docker instance. The task at hand is to integrate a SSG (static site ...
6
votes
1answer
5k views

Internal Server Error while running docker-compose to install Gitlab

I'm installing Gitlab on my server using docker-compose based on Docker Docs. My SSH port is not the default one (22) and I have changed it to something else like 2228. So the YML file became like ...
6
votes
1answer
16k views

Change owner of files created inside a Docker container without changing the Dockerfile

When I create a file inside a container with docker-compose run web touch test the file owns to root:root. I want to change it to be $USER without to use chown. I'm aware of the --user option but it ...
6
votes
1answer
2k views

How to bind ports for docker container in bitbucket pipelines?

I'd like to test an application using bitbucket pipelines with a custom docker image running some services. I have a dev docker image which runs all the services I need in order for tests to pass. ...
6
votes
1answer
992 views

Networking between Docker containers

I have a docker container 'A' on a host 10.11.12.13 listening on port 0.0.0.0:8443->8443/tcp I have another container 'B' on same host how wants to talk to 'A' on 8443 via host. Thus when I run ...

1
2
3 4 5
20