Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
817 views

What's the best complete DevOps setup?

I'm curious what everyone recommends. Vagrant is for setting up test environments right? Ansible/Chef etc. seem good for servers you own, but what about cloud? Docker... great for standardizing app, ...
2
votes
2answers
129 views

Dockerfile base image

I have a Python application that I want to containerize with Docker. Should I use FROM python:3 or FROM python:3.7? Does the python:3 tag automatically use the latest minor version of Python? Would ...
5
votes
1answer
2k views

Handling request based on source ip with traefik in k8s

I have a k8s cluster (three vms on my own hardware; no aws, google cloud, ...) that uses traefik (https://traefik.io/) as a reverse proxy to address services/deployments in the background. For this I ...
5
votes
2answers
11k views

Applying ansible playbook to a docker container on a remote host

I have automated the setup of several docker containers with ansible. This works pretty well but there are certain recurring tasks that have to be executed within the docker containers. It is ...
4
votes
1answer
6k views

docker volumes on cifs share cause permission disaster

I have a small vm running docker it only has a 20gig SSD which is more than enough for the OS + SWAP + Docker and the container images. But now I want to run a nextcloud docker image on that host. ...
2
votes
0answers
371 views

Using docker cloud from jenkins running on local osx docker

Hopefully someone can help, I've found lots of information online but as I'm brand new to both jenkins and docker, I'm having a hard time sorting out which suggested solutions happen on the what ...
3
votes
1answer
110 views

Mysql with Kubernetes

I am converting a webapp from monolithic to kubernetes based architecture. But how can mysql be persistent with data when we have 2 mysql pods in each of 2 differnet nodes? I think we can mount a ...
3
votes
1answer
260 views

Diagnosing large delay in file sync to Docker for Mac

Preface: I understand that Docker for Mac has file syncing performance issues, but everything I've read about the issues is related to slow read access. I don't really have a problem with slow read ...
4
votes
1answer
1k views

Using docker-compose, what's the recommended way to handle different sets of containers for dev and prod?

I'm creating a webapp with a python backend, Nginx as the server, and Vue as my frontend web framework. When deploying to production, I build an nginx container that, on build, compiles all my ...
6
votes
2answers
131 views

What methods are available for connecting many-to-many containers?

I have two containers (Docker): TensorFlow container NodeJS container used as a frontend to the TensorFlow container. Both containers have TCP listeners on a port specified using environment ...
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....
3
votes
4answers
977 views

Does building a Docker image require the Docker daemon to be running?

I am trying to get my feet wet with Docker/containers. I started with this tutorial: Getting Started · Spring Boot with Docker It works fine, but I was surprised it is necessary to have the "dockerd"...
1
vote
1answer
377 views

Docker Swarm loop

I have written my own simple docker image. It works fine. Then I created my docker swarm with only two nodes a master and a slave and started a service with the following command: docker service ...
1
vote
1answer
859 views

Adding a persistent volume to a Kubernetes deployment from Gitlab Auto Dev-ops

Recently, GitLab partnered up with Google Cloud to provide automatic deployment to Kubernetes clusters directly from project repos. I enabled Auto Dev-Ops on my project, which just contains some Node....
5
votes
1answer
450 views

What are best practices for sharing Docker compose files with ops team to use in Docker stack

I'm looking for best practices to share the Docker compose files created by developers with the people that do the deployment. We use 2 docker compose files: docker-compose.yml and docker-compose....
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 ...
4
votes
3answers
3k views

How can I convert a production Linux server into a docker Image or container?

I've a production Ubuntu that contains a huge number of software and dependencies, I want to 'clone' that VPS into a Docker image to be able to replicate the same environment and distribute them in ...
2
votes
2answers
1k views

Join a Linux Docker swarm with a local Windows Docker for test purposes

I'm currenlty trying to connect/join a Linux Docker Swarm cluster with my Windows machine in order to test a stack without sending the stack over and over to my test cluster under Linux. My problem is ...
1
vote
1answer
1k views

Docker Swarm join-token not working

I am trying to add a new node into my swarm over the internet but it doesn't seem to connect through a proxy. I am trying to proxy using Caddy. The proxy configuration results in the same as for any ...
2
votes
1answer
119 views

Scanning fs in a Docker container is (much) slower than on host?

Is scanning/searching the filesystem slower in a Docker container, than on the host? Seems a lot slower from my testing and sometimes I get an EIO scan error. Specifically I am scanning a read-only (:...
5
votes
1answer
2k views

How to change Xmx settings for sonar runner?

This Question has been answered on Stackoverflow too. I have a Sonarqube instance running as a docker container. Since I updated it to version 7.1 the analysis of my greatest project fails with GC ...
0
votes
1answer
316 views

Docker swarm custom scheduler

We have a 6 node docker swarm running and we often see bad scheduling (clean inbalance) happening. I've researched this subject, and it seems docker swarm as standalone used to allow a way to choose ...
1
vote
1answer
286 views

Cannot connect to server running on host from Dockerfile / image build

I have a server running on localhost:3440 on the host machine. In a Dockerfile I have: RUN apt-get install -y netcat RUN nc localhost 3440 | tar -x -O > ores-$(date +%s.%N).tgz I've read that ...
1
vote
1answer
451 views

Error while trying to run docker redis image on Alpine Linux 3.7.0

Specifications Microsoft Windows [Version 10.0.14393] VirtualBox 5.2.8 Alpine Linux Extended 3.7.0 Docker Info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 1 Server Version: 17.10.0-ce ...
1
vote
2answers
968 views

Cannot Change Docker Size on Ubuntu 16.04

Docker version 18.03.1-ce, build 9ee9f40 I am trying to increase the docker container sizing on Ubuntu 16.04. I have created the following file at /etc/docker/daemon.json { "storage-opts": ["dm....
2
votes
1answer
954 views

Rancher & gitlab-runner - is there a way to get the gitlab-runner to tell Rancher to start the CI test environment instead?

I’ve got an AWS gitlab instance successfully doing CI with gitlab-runners running under vagrant on my local dev machine. I’d like to move the runners off my machine and onto a standalone server... I’...
2
votes
0answers
2k views

Can not find save handler 'redis' - session startup failed - for PHP

I am getting this error while loading index.php file. Warning: session_start(): Cannot find save handler 'redis' - session startup failed in /var/www/html/index.php on line 2 My index.php code ...
4
votes
1answer
7k views

GitLab Runner is using its Docker host's hostname as Git server FQDN/hostname

When using a GitLab Runner with a "docker" executor, the following build error occurs: Running with gitlab-runner 10.7.0 (7c273476) on main 80500676 Using Docker executor with image centos:latest .....
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, ...
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 ...
5
votes
1answer
4k views

Does Docker on MacOS support tmpfs?

I am new to Docker and I want to run Docker with ram only storage. In other words, I do not want Docker to save anything on persistent storage. I found out that on Linux Docker supports tmpfs. Is ...
1
vote
1answer
183 views

Deploying a SaaS solution which is custom for every customer

So we have 5 repositories (Individual web services ex. CMS/E-commerce and internal APIs) which are currently deployed as Docker containers. What we plan to do is to use these services and make a ...
2
votes
0answers
261 views

What is the preferred method of using feature flags in Flask? [closed]

I wanted to ask what the preferred tool, method or framework is when using feature flags with Flask applications. The main problem is that the most relevant result has not seen an update since 3 years,...
4
votes
0answers
3k views

Issues with COPY when using multistage Dockerfile builds -- no such file or directory [closed]

I'm trying to convert my project to use multi-stage builds. However, the final step always fails with an error: Step 11/13 : COPY --from=build /bin/grafana-server /bin/grafana-server COPY failed: ...
1
vote
2answers
4k views

Running additional commands on Docker image startup

As far as I know, it's a good practice to use containers from Dockerhub instead of making my own ones. Most of those contain docker-entrypoint.sh script that is executed on startup. However, sometimes ...
2
votes
0answers
76 views

What integration test framework has the best docker support? [closed]

We need integration testing framework - pass a url pass requests to that url and get responses and evaluate repsonses. Requirements: 1. We want a tool that can easily implement into a CICD pipeline ...
2
votes
1answer
1k views

Open source microservice visualization

We run various microservices on rancher and kubernetes, and I am wondering if there are any open source projects that assist in visualizing network traffic between services to help detect dependencies....
38
votes
2answers
35k views

Passing secrets to a Docker container

I have a base docker image which is used to run image analysis software. For each container created from the image, there are a set of configuration settings, some of which are secrets (encryption ...
0
votes
1answer
232 views

Running Docker images as Jenkins slave

I have a Jenkins Master running in Windows as Local system. I have Jenkins slaves running as Docker containers in a VM in the same Machine. Everything is working OK, I just want to know are there any ...
2
votes
1answer
3k views

Why can I not run docker daemon?

After instalating Docker from repo I can't run it. Problem is with daemon: dockerd INFO[2018-04-16T09:35:46.054942906+02:00] libcontainerd: started new docker-containerd process pid=21656 INFO[0000] ...
1
vote
0answers
164 views

How can I make my clients (host) use my Squid proxy inside Docker container? [closed]

As an Example, I have 1 client (IP: 192.168.0.200) and 1 host (IP: 192.168.0.15). If client want to connect to the internet, then in host will be created container which contains squid proxy (I pull ...
1
vote
1answer
128 views

Making thousands of microservice/dockers with different IPs

I need to simulate many connections. Currently using curl. What is the best way to deploy thousands of such requests with different IPs using some script?
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. ...
3
votes
1answer
2k views

How do I make read only mount in Docker container writable?

When developing code on a very large repository, I would like to run multiple builds/tests in parallel in containers. I need to get my repository or some other large directory into the container. If I ...
2
votes
0answers
44 views

Which volume solutions are the most convenient when building Docker & microservices based application? [closed]

My application consists of few microservices and web (React) frontend. Basically I have auth microservice, application backend service, various data processing services and frontend rendering server. ...
3
votes
2answers
3k views

Ultimate docker permission solution

I'm using docker some time and I like the conception very much. But I found a thing is a big problem for me. I'm talking about permissions. While I'm not worrying about production, setting up my ...
4
votes
1answer
6k views

How can I push multiple containers, created with docker-compose, to a registry

I am using Jenkins pipeline and run a shell command to bring up my linked containers for testing. Once the testing is complete, I want to push the containers to a registry (I would prefer AWS ERC, but ...
5
votes
1answer
814 views

docker-compose fails to recognize when images are rebuilt sometimes ... often same code is OK

I have a devops container inside of which I execute docker build and docker-compose up commands which run OK then (on same server or different server with same code) sometimes incorrectly fail to ...
4
votes
1answer
117 views

Docker managers are losing quorum on AWS

I have deployed Docker EE on AWS by choosing the package directly from the AWS Marketplace: Docker EE for AWS (Standard/Advanced) - BYOL. The cluster has been successfully launched and deployed on AWS....
0
votes
1answer
194 views

docker micro-service cannot connect to bitcoin docker

I have a micro-service watchblockchain that makes requests on bitcoin blockchain. When I use both services, everything works just fine. Then I want to put those services in docker containers. ...

1
13 14
15
16 17
20