Questions tagged [docker]

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

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

Restart container if its application hangs

I have a critical container application which task consist of polling sensors and taking consequent action on some external hardware. If the application of the container crashes it's fine. restart: ...
1
vote
1answer
17 views

Is there a way to push tarred repository to dockerhub without loading on local

I have a tarred docker repository created by using docker save. I want to push this tar to a registry, say dockerhub. Is there a way we can do that without loading on local docker?
1
vote
1answer
81 views

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for ...
5
votes
3answers
704 views

Is docker absolutely necessary to deploy applications with Linode's Kubernetes?

Is learning and using docker required to deploy applications with Linode's Kubernetes Engine? (LKE) As fun as docker sounds, I'd like to avoid having to learn that additional complexity if possible. I ...
0
votes
1answer
36 views

Gitlab build from multiple repositories - git submodules

I have gitlab repo ZERO (project) which serves as a code base for multiple websites (repo ONE, TWO, THREE..), these are also gitlab repositories. I am using gitlab CI/CD options, I want to be able to ...
1
vote
0answers
27 views

Simplest way to provide a service between Docker containers

I have a Docker container to run some data processing (running RStudio). At one point it would need to run an external tool (ExtTool) which needs completely different architecture: it's a Windows-only ...
0
votes
0answers
42 views

PROXY is not working inside windows container

I'm using windows containers in windows 10. I've set proxy variables(HTTP_PROXY,HTTPS_PROXY) in environmental variable setup and using VPN. I also configured resources -> Proxies. I was trying to ...
0
votes
0answers
138 views

Docker volume type cifs works OK with docker-compose write not allowed on swarm

I have a docker-compose.yml with this volume inside: volumes: xxx_media: driver: local driver_opts: type: cifs device: //10.1.1.3\Company$$\xxx o: "user=service.it@xxx....
1
vote
1answer
40 views

Docker Swarm stop working with redeploy service, require system reboot

I got a Docker Swarm with 3 nodes, and contain around 40-50 stack on it, now its random stop working to redeploy my new changes its just say in new mode, and really don't know what going one here. ID ...
1
vote
2answers
168 views

Send command to docker image while start in Jenkins file

In scripted Jenkinsfile if I need to send a command to Docker image, I can do like this: docker.image('mysql --default-authentication-plugin=mysql_native_password') How can I do the same in ...
0
votes
0answers
38 views

Testing Raspberry Pi image in a docker container with Packer and qemu

I would like to make a smoke test of a Raspberry Pi image in a docker container. I am building the image using packer.io and the build-arm-image plugin in a gitlab pipeline inside a docker container. ...
1
vote
0answers
30 views

ClamAV server on Azure - how to secure traffic from services?

I would like to have ClamAV service (deployed from clamav/clamav image on Docker hub) which can be called by other services on the same subnet. However, clamd exposes API over TCP and there is no ...
0
votes
0answers
106 views

Error: EACCES: permission denied, open '/opt/app-root/src/.config/yarn'

I'm getting the below error when spinning up my node.js container, on my openshift cluster: Error: EACCES: permission denied, open '/opt/app-root/src/.config/yarn' at Object.openSync (fs.js:498:3) at ...
1
vote
1answer
75 views

Unable to use AWS ECS docker context in bitbucket pipelines deployment step

I'm trying to add a deployment step to bitbucket pipelines that works successfully when I simulate locally but fails when executing the steps in bitbucket. I have created a simple docker image that ...
1
vote
1answer
54 views

Automating deployment of microservices from start to finish

I'm currently part of a team that trains multiple pods of new hires. Each pod creates a client simulated project that involves the following steps: Creating kubernetes namespaces for each pod for ...
0
votes
0answers
165 views

Run htop on a remote machine in a docker container

I want to simulate user trafic (for tests purposes on a product), that's why I want to run a container which would start a SSH connection and run htop (to simulate user trafic) on a remote machine. To ...
1
vote
1answer
277 views

How to communicate between AWS ECS containers

Problem How do ECS containers communicate between each others? Situation I use docker compose ecs integration. In AWS docker context, docker compose up did a deploy correctly. But reverse proxy doesn'...
0
votes
1answer
72 views

Drone is unable to clone GitHub Project

I'm trying to set up drone, but when running a build it fails at the clone step. I'm pretty sure this is a DNS issue and that I just configured the runner wrong, but I just can't figure it out. This ...
2
votes
1answer
44 views

How to do docker build image from dockerfile on Kubernetes 1.20

Kubernetes 1.20 moved from docker to CRI-O as container runtime. I have a scenario where my Jenkins run on kubernetes and does docker build my dockerfile .But the build breaks as docker daemon is not ...
1
vote
1answer
44 views

How would I change the docker's base directory

All my docker related folders are saved in /var/lib/docker. But my / space is very limited. Hence, I would like all of the content present inside this location to go to say /home/User/my_space. How ...
1
vote
0answers
38 views

Redhat Nodejs-minimal yarn not found

Coming across a very odd issue here: Whenever I try using a ubi8/nodejs-14-minimal base image, the build fails with /bin/sh: yarn not found. I have installed yarn already by adding a Run npm install ...
1
vote
0answers
32 views

Self assigned TLS sertificate traefik

My problem is self assigned cert instead of lets-encrypt cert docker-compose.yml: version: "3.7" services: traefik: image: traefik command: - --api - --providers....
0
votes
0answers
17 views

How does Routing mesh in docker swarm mode work?

I'm new to docker, just studying routing mesh. I was wondering How does this concept actually work. I know that all swarm nodes participating, listen and respond to the service port but I didn't ...
5
votes
2answers
101 views

Best Practice for writing DockerFile

I have mostly seen people using following type of pipeline steps(it varies, but in general this is the flow of steps I have observed) Process: clone repo -> build -> test -> create docker ...
1
vote
1answer
149 views

Bootstrapping Galera Cluster in Docker

I'm trying to bootstrap a MariaDB Galera cluster in Docker containers. The following configuration works when I set network_mode: host, but then I can't directly access the MariaDB from inside other ...
0
votes
0answers
56 views

pm2 to start docker-compose

There is plenty of documentation and dicussion regarding running pm2 inside a Docker container. And general consensus seems that you use K8 or docker-compose to handle health checking/auto-restarts/...
1
vote
0answers
21 views

OS level Nginx that proxies to Dockers vs Dockers that each contain their own Nginx

Given a traditional Linux server ie- Ubuntu on a VPS and a commercial app that requires a handful of Docker containers each of which need to communciate to one another ... with one of those containers ...
1
vote
1answer
22 views

Accelerate autoscaled VM boot time

We're using Google Cloud Platform with an autoscaled pool of VM behind a google's load-balancer. When a new VM is created in the pool it starts from a template then executes a startup-script. The ...
1
vote
0answers
40 views

Reducing docker image size - /usr/lib, /usr/local and /usr/bin

I'm trying to reduce the size of our docker image considerably, as it currently stands at ~1.13GB. Given our app codebase takes up ~300MB and the image is based on Alpine, I think it can be a lot ...
1
vote
2answers
81 views

Best Practice for Container Image Versioning

I'm looking for some guidance on best practices for container image versioning and despite reading a number of the best practice guides they leave some ambiguity. I understand that most container ...
-1
votes
1answer
23 views

Should i stop native apache and mysql when running docker?

I have installed MySQL and apache using brew on my local machine and have been using them for several php project environments. Now i want to start learning docker to containerize a new Laravel ...
1
vote
1answer
94 views

Using access tokens on Dockerfile to clone repository: RUN command error

In a Dockerfile, I'm trying to clone several Gitlab repositories that are specified in a file, one per line, using an access token passed as an environment variable set in docker-compose.yml: COPY my-...
1
vote
3answers
91 views

Best Practice for Kubernetes Development Environment

When using kubernetes with minkube locally, what is best practice for a development environment? When using docker, in development I have mounted a volume with the source code, so I can modify code ...
1
vote
1answer
36 views

Purge old docker images, except images that have been used in the past 4 weeks (docker image prune --filter until=672h)

How can I tell docker to prune old images, except any images that have been used in the past 4 weeks? To prevent the oft-cited issue of docker filling our disks in prod, we have a script that runs the ...
0
votes
1answer
62 views

no route to host container registry

After installing docker (ubuntu) the default 172 ip was replaced with 10.200.x.x sudo ip addr add dev docker0 10.200.200.90/24 sudo ip addr del dev docker0 172.17.0.1/16 The machine's ip is 10.203.32....
0
votes
1answer
1k views

Initial file not found on docker-entrypoint

I want to run a container with docker-compose. My dockerfile is installing some stuff and at the end it looks like this: FROM adoptopenjdk/openjdk16 ... COPY ./myfiles /mydockerfiles ...
1
vote
0answers
19 views

How do you find allowed HTTP methods in openshift deployment

In classical application deployment, one could query the web server with HTTP method "OPTIONS" to discover allowed HTTP methods On an openshift application deployement, how could we get that ...
1
vote
1answer
34 views

How can I get logs in real time from a docker container hosted on Digital Ocean

I have a docker container in which I am running Flask and Scrapy. I noticed that when I run and build my container on my local machine I get logs in real time. However, on an Ubuntu instance hosted on ...
0
votes
1answer
41 views

Run docker with bind-mount pointing to non-existent host folder: Where is the data?

I run a docker image with a bind-mount pointing to a non-existing host directory. The docker image then created data into that volume, wherever it may be. The data is accessible on every docker run. ...
5
votes
1answer
88 views

How would you build docker images in Kubernetes while distributing its layer caching among all pod builders at scale?

We are using Azure DevOps as our CICD platform. We have our own self hosted Linux agents which we integrated into our CICD Azure Kubernetes Cluster . We use these agents to build our Docker images ...
0
votes
1answer
166 views

How to configure single nginx ingress with letsencrypt and multiple bitnami wordpress containers?

I'm using bitnami/wordpress helm chart to create many websites which should run on different domains. I'd like to auto secure them and use a single ingress to route traffic. I'm using this tutorial ...
0
votes
1answer
94 views

Difference between Docker container with Debian vs VM with Debian?

What is the difference between running a Docker container with Debian (eg. https://hub.docker.com/_/debian/) and then running a virtual machine with Debian? And why is it still an advantage if any? I'...
0
votes
1answer
20 views

How to setup custom authentication and authorization in Istio/K8?

As I am new to istio world. I am having difficulty understanding how that technology's auth system work. Let's say, I have a project that has 8 pods(services). I understand that authentication and ...
1
vote
2answers
670 views

How to resolve a problem "certificate signed by unknown authority" in GKE on pulling image (a private registry) when a pod is created?

I generated a CA certificate, then issued a certificate based on it for a private registry, that located in the same GKE cluster. Put the server certificates to the private registry and the CA ...
1
vote
1answer
98 views

OIDC token invalid when put into kubeconfig

I can connect to the Kubernetes API from a container running inside the cluster with an OIDC token like so: kubectl —token $token get pod I would now like to prepare a kubeconfig such that other ...
1
vote
1answer
44 views

How to pin public root key when downloading an image with docker pull (Docker Content Trust)?

How can I execute docker pull (with Docker Content Trust enabled) such that it fails if the image doesn't have a valid signature using the private key corresponding to (or subordinate to) the public ...
2
votes
2answers
108 views

Log/Data rotation in Docker Container

My question is more on the concept or best practices to follow. I have two docker containers running InfluxDB and Grafana (monitoring applications). I have mounted external volume to each. now, the ...
0
votes
1answer
393 views

Docker compose up, Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use

I'm trying to a gitlab/gitlab-ce image up and running with docker-compose on macOS (Big Sur) (docker-compose up -d). I'm using docker-machine with the virtualBox driver. However, when starting the ...
0
votes
1answer
26 views

Which container will be targeted when replicas larger than 1

Below is a simplified version of my docker-compose.yml file. I can understand or find any resources to tell me which container of the 5 django replicas the nginx container will target if i reference ...
0
votes
1answer
30 views

Docker image file location

I run Docker on Windows 10 machine with WSL 2 support. I would like to know where docker image files are located in this situation? Where docker image files are located in case when no WSL 2 is ...

1
2
3 4 5
19