Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
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 ...
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 ...
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: ...
7
votes
2answers
762 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 ...
22
votes
2answers
13k views

Connect Docker container to both host and internal bridge network

I am trying to run a Docker container as a router between a private (--internal) Docker network and the predefined host network. This means the container needs to have two network interfaces: One "...
30
votes
3answers
55k views

docker-compose invalid type, it should be a string

I have the following environment variable configured in a docker-compose.yml file: version: '3' services: server: ports: - 13045:3000 environment: - NODE_CONFIG: '{"DATABASE_URL":"...
4
votes
1answer
1k views

Unable to get jupyter/scipy-notebook running on docker

I pulled the docker image and is up to date. When I run it it says that it's going to be accessible at 8888 on my localhost but when I try to access it resource can't be found. Here is the ...
3
votes
1answer
46 views

Docker memory storage

Docker daemon allows, according to documentatio, using memory storage driver for its images. Has anybody any daily business experiences with that?
4
votes
1answer
2k views

Understanding how Docker volumes work with compose

In the Docker Compose example for WordPress, the Ycode listing [1] says: volumes: - db_data:/var/lib/mysql What is exact meaning here? To compare, while using the Docker client, you can map ...
1
vote
1answer
39 views

Deploying a set of cloud instances based on a list of parameter differences

Sorry for the general and vague nature of my question. Let me describe with some more detail what I would like to do (or what I think I would like to do). I have a shell script for ubuntu 16.04 ...
4
votes
1answer
93 views

Who redirect ports on Windows to access http container?

When we use Linux, Docker can create a rule using iptables to do a port redirection to connect in the http of a container. When we use Windows, how does this work?
6
votes
1answer
437 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 ...
5
votes
1answer
106 views

When would I choose IPTables over an Ambassador pattern for port forwarding?

In an environment of Secured Virtual Private Clouds, in a Cluster of Docker Containers, we have to setup some routes. We can do that with the Ambassador pattern, which is simple and easy to maintain....
3
votes
1answer
315 views

In what all cases would one use an external load balancer over the Ingress routing mesh in a Docker cluster?

Also, would the routing mesh act as an application load balancer? Like for example, if I am having a Docker cluster in AWS, how does the ELB added to it, work? And how would that be different from ...
5
votes
3answers
591 views

Baking Immutable Images

I am working on a project and we are trying to bake immutable images on containers as IaC. These images can have J2EE, .NET or Python apps on it. All OS patches should be applied to this image ...
3
votes
1answer
1k views

How does using packer and terraform in a CD pipeline compare to docker images built from git?

At work we have a Go CD pipeline for producing docker images, and scheduling docker containers with rancher. This works quite well. You can commit a change to the Docker image in Git, the pipeline ...
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 ...
-1
votes
2answers
573 views

Windows Container (Nano Server) with ASP.NET Core

I'm trying to make an Windows Nano Server container that runs an ASP.NET Core app. I'm building it on Windows Server 2016. I can make it work, but there is one odd problem. The only way I can make ...
14
votes
6answers
396 views

Is Docker right for my use case?

My company has a system we sell that consists of basically a mini-computer "Smartbox" that is running Ubuntu 12.04. This box runs a Django application plus a number of different upstart processes ...
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 ...
21
votes
6answers
10k views

How to prohibit access to internals of Docker container?

I want to deliver my app to customers in form of docker image. But it is crucial to ensure that end-user do not alter anything inside the container. User should only be able to run/stop the container ...
8
votes
1answer
970 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 ...
13
votes
2answers
1k views

Docker Container capacity planning

I'm running my application on 4 Virtual Machines with 8 3.2 GHz Virtual CPUs and 32 GB, however, I will be splitting up the processes into separate containers. I am not sure how many containers to ...
20
votes
2answers
5k views

Where should I put my application configuration?

I've been reading lately a debate about "Where should properties that depend on the environment be stored?". The classical way is to have multiple property files, one by environment, and based on an ...
8
votes
2answers
789 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,...
5
votes
1answer
66 views

How to let build fail when docker image size exceeds certain threshold?

docker images returns: REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> fcc125757e66 About an hour ago 270 MB ...
12
votes
2answers
2k views

How to run experimental Docker features on CircleCI

When a build is started on CircleCI one of the first things that is done is: Setup a remote Docker engine Specified reusable docker engine, but build has not been whitelisted. Contact CircleCI to ...
13
votes
2answers
552 views

Combine Docker Swarm and Kubernetes

My company is trying to play a little catch-up in the DevOps space. I have been doing a lot of research on containerization of applications and the orchestration systems that go with it. I came across ...
4
votes
1answer
764 views

Why does `docker-login` fail in BitBucket pipelines?

Aim to login to a private docker registry using BitBucket pipelines. Attempt Based on this documentation the following bitbucket-pipelines.yml: image: docker:latest pipelines: default: - ...
11
votes
2answers
8k views

What are the correct permission settings when running Docker in a Jenkins Pipeline?

I'm trying to get a new jenkins pipeline together to test new pull requests to our code. I'm using docker with the ubuntu:14.04 image to simulate our production environment. Here is a minimum working ...
17
votes
4answers
2k views

Are there any best practices and/or tools for cleaning old Docker images on a regular basis?

Is there an elegant way or a best practice when it comes to deleting old images from the Docker registry? I see a lot of requests/issues here: https://github.com/docker/docker-registry/labels/delete, ...
27
votes
2answers
4k views

Why is Docker-in-Docker considered bad?

In August 2013 Jérôme Petazzoni created Docker in Docker, dind for short, this allowed Docker containers to be created inside of Docker Containers, this functionality proved very popular resulting in ...
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 ...
2
votes
0answers
1k views

How exactly does Kubernetes work? [closed]

I understand how containers work and the concept of containerizing. However, I am having trouble understanding how Container Cluster Managers work. I was reading through this excellent blog post, ...
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? ...
133
votes
5answers
56k views

Why it is recommended to run only one process in a container?

In many blog posts, and general opinion, there is a saying that goes "one process per container". Why does this rule exist? Why not run ntp, nginx, uwsgi and more processes in a single container that ...
18
votes
3answers
23k views

Is there no Oracle JDK for docker?

REPOSITORY TAG IMAGE ID CREATED SIZE an-image 1 X 26 seconds ago 279 MB when the docker image will be run, the following message ...
27
votes
2answers
11k views

How to have multiple log streams in docker

We have an application that writes three types of logs into three separate files: access logs, generic application logs and system logs. The format (and purpose) of these logs are very different. And ...
13
votes
2answers
2k views

How to investigate a main process that has died in a docker container?

Sometimes you have to investigate a container, which is stopped, or a container which after starting up dies very quickly and stops. docker exec -ti <id> bash only works on running containers, ...
24
votes
7answers
3k views

How to create the smallest working docker image every time?

Aim: to create the smallest working docker images every time Current REPOSITORY TAG IMAGE ID CREATED SIZE a-docker-image latest x 42 ...
5
votes
1answer
225 views

Advantages of Linux Containers over Docker

I'd like to understand the differences between Linux Containers and Docker, especially what kind of advantages Containers have in comparison to Docker.
8
votes
1answer
348 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:...
7
votes
1answer
731 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-...
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 ...
5
votes
1answer
370 views

How to automate TeamCity installation using docker?

JetBrains TeamCity docker image describe build steps for already installed TeamCity. Is there any way to automate installation of TeamCity it-self? For example creating the admin account, enabling ...
18
votes
4answers
3k views

Are there any drawbacks of using a deb package as if it was a container to deploy an application?

My team is currently trying to decide if we should deploy our Nodejs app as a deb package instead of trying to run it in a container such as Docker. I got this idea from reading this blog here which ...

1
15 16 17 18
19