Skip to main content

Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
99 views

Prevent docker to write inside container

I have an extracted container deployed on a shared storage, and want to launch this container locally. However, when I launch this container to run an application, it creates some temporary files ...
Sandy's user avatar
  • 1
0 votes
0 answers
94 views

How do you safe the state of a running container during reboot of the host?

Is there any way to restart the host without loosing all changes that were made to the running container (if the changes were not made on a mounted volume) ? I have docker container commit if I'm ...
Hoffmann's user avatar
  • 101
0 votes
1 answer
159 views

What is best practice for passing files and directories as command line arguments to a containerized program?

I am working to containerize a program. The program requires a configuration file and directories for its operation, which are passed as command line arguments, e.g. something like this: $ myprog -c /...
packoman's user avatar
  • 101
3 votes
1 answer
746 views

Keeping Docker logs only in memory

There are various log drivers available for Docker but it looks like all of them persist the logs to disk. To reduce disk usage I would like to keep the logs only in memory (and limited to a certain ...
AndreKR's user avatar
  • 150
0 votes
1 answer
228 views

Bypassing OAuth in Traefik router that routes to other network device

In Traefik2, I've got router.toml that contains the following lines: [http.routers] [http.routers.sonarr-bypass] rules = "Host(`sonarr.DOMAIN.com`) && Headers(`traefik-auth-...
Gerald's user avatar
  • 101
0 votes
1 answer
95 views

How is memory and storage shared between tasks running stateful applications?

I've been reasearching docker swarms and found out that a swarm is a collection of nodes, nodes are computers that run services, services are schedulers of tasks, and tasks are running containers. ...
marcosdly's user avatar
0 votes
2 answers
634 views

why does my Ansible playbook throw "Found existing installation: requests 2.25.1\n\n:stderr:ERROR: Cannot uninstall requests 2.25.1"?

I'm trying to run an ansible playbook that installs docker and docker-compose and runs a compose file on a ec2 t2.micro. To use the docker modules in ansible, I need to have docker and docker-compose ...
Keshav Singh N's user avatar
0 votes
3 answers
267 views

Estimate storage space for a git server

How to estimate the space a git repository will take on a source version control server? For example, given k commits every day, with x kB of code per commit, my repository will take n GB of server ...
user2315856's user avatar
2 votes
1 answer
1k views

ctop does not work with latest version of docker: Get "http://unix.sock/info": dial unix /var/run/docker.sock: connect: no such file or directory

I am very fond of ctop, a command-line manager for docker containers. I recently upgraded my docker to v23.0.5 on mac OSX Ventura 13.4 (Intel chip). After doing so, and running ctop, I get the daemon ...
Seth Lutske's user avatar
1 vote
1 answer
5k views

Docker WWWUSER e "WWWGROUP variable is not set

I just created a project in WLS with Laravel using the command: curl -s https://laravel.build/example-app | bash When trying to use the command docker-compose exec app bash it returns the this error: ...
André's user avatar
  • 11
3 votes
2 answers
2k views

How do I get real client IP inside docker container for logging to the database

I have a following docker compose file: version: "3.8" services: postgres: image: postgres:11 volumes: - myapp_postgres_volume:/var/lib/postgresql/data ...
RajS's user avatar
  • 151
0 votes
1 answer
92 views

Set the base path of an Apache proxy handler

I'm developing my application with 2 containers: apache and php-fpm. Apache serves requests, and delegates PHP execution to the php-fpm container in its vhost: <FilesMatch .php$> ...
amacrobert's user avatar
1 vote
2 answers
2k views

How to get Docker container stdout in Jenkins logs?

(Moved this question from Stack Overflow after getting no traction there; perhaps I'll have more luck here by getting consideration by more DevOps-specific experts) As part of my Jenkins pipeline, I ...
StoneThrow's user avatar
0 votes
1 answer
2k views

Docker push getting error EOF to private repository

I'm trying to push images to repo private, but it's getting error below. Before, it was working, but idk what happened... PS C:\Users\user\aplication> docker push registry.apprepo.app/app:1.22.3 ...
Limup's user avatar
  • 1
0 votes
1 answer
819 views

Install OpenSSL into Red Hat image lacking yum

I have a container (running image quay.io/keycloak/keycloak:21.1.1) where cat /etc/os-release reports the following (excerpt): NAME="Red Hat Enterprise Linux" VERSION="9.1 (Plow)" ...
rookie099's user avatar
  • 141
0 votes
1 answer
127 views

Way to detect base container version for pods

I am trying to understand how companies detect that a Kuberentes pod is running a container that is based on a container image that is out of date. So, for example, say I have an application called ...
Vaccano's user avatar
  • 206
0 votes
0 answers
26 views

Unable to understand Docker error

I am new to Docker and trying to run a webserver written in Python. I am using Linux Debian running as virtual machine on a Windows host. I have mounted the required folder from my Windows host to the ...
MAJID AHMAD's user avatar
0 votes
1 answer
462 views

Unable to pull image from a private Docker registry with Let's Encrypt certificate in Kubernetes

I have set up a private Docker registry on my Kubernetes cluster (k3s) running on a Raspberry Pi 4. I have secured the registry with a Let's Encrypt certificate, and I can confirm that the certificate ...
Snorghma's user avatar
3 votes
1 answer
136 views

Measuring image pull latency in k8s cluster

I maintain a Kubernetes clusters that pulls a number of images (mostly from Docker Hub, but also some from GCR and GHCR). I am interested in building a dashboard to measure the amount of time it takes ...
Derek Brown's user avatar
0 votes
1 answer
743 views

Docker MongoDB container endlessly restarts on macOS

The MongoDB docker container infinitely restarts every few seconds on local docker env, even though it used to work. Env: macOS 13.2.1, docker 4.17.0, Engine: 20.10.23, Compose: 1.29.2, Credential ...
Talchu's user avatar
  • 1
1 vote
1 answer
2k views

How can I make an image out of a k8s specific pod container

I have made a pod, and it has only one container, I've been able to connect ot it by using kubectl exec -it -c <container_name> <pod_name> bash And I've installed and done several stuff on ...
Eugenio.Gastelum96's user avatar
2 votes
1 answer
2k views

Why does running a nginx image in docker interactive mode makes nginx not working

I have made a docker container from nginx running in background this way: docker run -d --name nginx1 -p 49699:80 nginx When I go to localhost:49699 on a browser with cleared cache it works properly ...
Eugenio.Gastelum96's user avatar
2 votes
1 answer
1k views

Azure DevOps Pipeline failure - Program does not contain a static 'Main' method suitable for an entry point

I have been tasked with deploying an email service to an Azure tenant using Windows Containers. In my Pipeline (Azure DevOps), I am receiving the following error when in the build step: CSC : error ...
Hayen's user avatar
  • 21
1 vote
2 answers
1k views

How to get Dockerfile or last CMD/ENTRYPOINT of a kubernetes deployment image?

So I have a deployment like this: apiVersion: v1 kind: Pod metadata: name: yy spec: containers: - name: yy image: gcr.io/xx/yy imagePullSecrets: - name: gcr-json-key That ...
Kokizzu's user avatar
  • 113
0 votes
1 answer
159 views

Unable to deploy grafana using helm

I'm new to grafana and prometheus, started working on it from last few days. I'm having some issues. I build a new grafana image and I am using the official helm repo to install it. On using the ...
Alexy P Thomas's user avatar
0 votes
1 answer
229 views

Migrating from dockershim to containerd - kubectl continues to show docker runtime

Following directions from here. End goal is upgrading cluster to 1.24 and beyond. At the end when I run kubectl get nodes -o wide seems like I would see 'containerd' as the runtime (link) but instead ...
ethrbunny's user avatar
  • 111
0 votes
3 answers
532 views

Azure Devops pipeline not listing artifact created by it

I am building and pushing Docker images to my Azure Container Registry from Azure DevOps using the azure-pipelines.yml file below. This works great except that there doesn't seem to be any relation ...
Oskar Persson's user avatar
0 votes
1 answer
991 views

Best dockerized VPN clients?

I'm trying to set up a VPN client in a Docker service with Docker Compose, but I'm running into some issues. ExpressVPN: I tried this ExpressVPN container, but it just keeps restarting constantly. ...
jerdub1993's user avatar
2 votes
1 answer
1k views

Can't change ownership of folders and files in Docker containers

I am having these two dockerfiles which in both I am adding the command RUN chown -R www-data:www-data /var/www/html to change the ownership to www-data user. The containers seems to build ...
ltdev's user avatar
  • 121
2 votes
2 answers
4k views

Docker.Core.HttpBadResponseException: {"message":"2 errors occurred:\n\t* provisioning docker WSL distros: deploying

2 years cannot fix error install Docker on Windows Docker.Core.HttpBadResponseException: {"message":"2 errors occurred:\n\t* provisioning docker WSL distros: deploying \"docker-...
Vy Do's user avatar
  • 165
2 votes
3 answers
440 views

How to generate a list of every external URL accessed during docker build?

Is there a straight forward way to generate a .txt file containing each URL (or corresponding IP) visited during a docker build process? Example An example list might look like this: # urls.txt https:/...
stevec's user avatar
  • 185
3 votes
2 answers
1k views

I am looking for a production alternative to kubectl port-forward

I want to know what are production alternatives to make http://192.168.49.2:30001 this accessible http://host_machine_ip:8007 here I have set up minikube cluster with mobile-api service on it. ...
Giorgi Beria's user avatar
3 votes
1 answer
59 views

Do docker layers work at file level or block level?

I'm considering using a Docker image as way to snapshot a MySQL database after fixtures have been loaded, in order to quickly restore the snapshot before each acceptance test. In order for this to be ...
BenMorel's user avatar
  • 198
0 votes
2 answers
608 views

show running docker containers nicely formatted

Default layout of output from docker ps is somewhat unwieldy ... how to get a better presentation of all locally running docker containers from terminal on linux ? For context below is output from ...
Scott Stensland's user avatar
0 votes
1 answer
181 views

Setting the network using docker-compose

Do you think these commands are valid? wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml NETWORK=testnet docker-compose up The first command downloads ...
J.O.C's user avatar
  • 11
0 votes
1 answer
384 views

nginx reverse proxy on docker - problem with setup custom ip for each domain

I an have nginx reverse proxy running in a docker container. On the host server I have a service failover ip. I want set for each domain on the nginx server to a custom ip, beacause at the moment all ...
zndbrgboz's user avatar
0 votes
2 answers
529 views

Persistent Volume with Kubernetes

I have an application which consists of 2 containers which are running on an on-premise system. The responsibility of the application is to accept data from other on-premise systems and upload it to ...
No Name's user avatar
2 votes
1 answer
827 views

I cannot exec into a docker container running in ECS

I'm attempting to login to a container (from ECR) deployed into an AWS ECS cluster. For what it's worth I'm using the docker compose/ecs integration to deploy this cluster. My docker compose file is ...
mwill4321's user avatar
0 votes
2 answers
1k views

Building a docker container in a gitlab ci job

I am trying to build a docker image as part of a gitlab ci job. I work on my own gitlab instance with a separate machine running ci jobs. I have tried and failed with many different configurations for ...
Henrik's user avatar
  • 3
0 votes
1 answer
51 views

how to decrease the docker image layers latency during the image build step?

I am following the Microsoft document to create a custom image of vsts-agent on top of ubuntu and install the required capabilities. Since our environment is not having internet enabled, we used ...
Vowneee's user avatar
  • 101
1 vote
2 answers
81 views

Simple CICD workflow for small-scale deployments?

I work for a small startup. We have 3 environments (Production, Development, and Staging) and GitHub is used as VCS. All env runs on EC2 with docker. Can someone suggest me a simple CICD solution that ...
Atharva Unde's user avatar
0 votes
1 answer
230 views

proxy in a docker container implemented only with iptables - refuses connection

We need to implement a proxy only by using iptables in a container and all traffic from other containers use this container to reach internet. Additionally in this proxy, drop trafffic to yahoo.com ...
Nachi Nachiappan's user avatar
0 votes
2 answers
355 views

Deploy multiple instances of the same application Kubernetes

I'm developing a web application in NodeJS and I want to create multiple instances of the same application to deploy it in multiple subdomains of my main domain. I want each instance to have the same ...
Kardier's user avatar
0 votes
1 answer
127 views

How to make a CI/CD of an ASP.net core app to Linux compute engine instance

I'm using Google cloud, I have a linux VM up and ready for use, I have an ASP.net core web app on Azure devops. I have configured the build pipeline for this webapp, now I want to automate its ...
Damien Doumer's user avatar
2 votes
1 answer
535 views

Passing Gradle credentials into Jenkins `dockerfile`agent?

I am looking at getting a newly provisioned Jenkins to run an existing dockerfile which does a gradle build and produces a runtime image which is then to be pushed to our internal docker repository. I ...
user18619318's user avatar
0 votes
1 answer
841 views

How reliable is NFS for using in Kubernetes?

I'm setting up a self-managed Kubernetes cluster where I'm limited by the number of choices for the backend storage for Pods. I should use a remote storage, so that multiple Pods can read/write at the ...
Javad's user avatar
  • 1
0 votes
2 answers
2k views

How can I map a domain to docker containers?

I have a Redhat Linux server. In that, I installed docker and run docker containers in it. Now I want to map a domain to docker containers by using Nginx. What is the correct process to map domains by ...
Rajesh Gandhavarapu's user avatar
0 votes
1 answer
2k views

Port forwarding rules with Traefik and Docker.Compose

I'm trying to use Traefik to route to a number of services all running using docker-compose. What I'd like to do is access each service with a prefix, eg: 10.20.30.40/u10/xyz and 10.20.30.40/a10/abc ...
user3166273's user avatar
0 votes
1 answer
720 views

Docker containers are being restarted after logging in via SSH

Docker is installed on my Raspberry Pi with Raspberry OS and running it in rootless mode. I currently have 3 docker containers running on it. The containers are running with docker compose. The ...
com2ghz's user avatar
  • 111
0 votes
1 answer
526 views

port forward ssh from traefik reverse proxy on docker to a k3s container

I'm running a k3s cluster (1 master + 2 workers) and a docker traefik container on the same host (master). The traefik docker container is actually doing the reverse proxy stuff for tls which is ...
jimmi4u's user avatar

1 2
3
4 5
23