Skip to main content
3 votes

How to configurate keycloak healthcheck in docker compose?

You could just add Curl by using the KeyCloak image in a Dockerfile and reference that Dockerfile in your docker-compose.yaml file. To do that I create a directory inside the docker-compose.yaml ...
Definity's user avatar
  • 141
3 votes
Accepted

What is the meaning of start-dev?

start-dev is the command which is starting when the container is running. In the documentation (https://docs.docker.com/engine/reference/commandline/run/) you see that the docker run command is ...
StarkesWeb's user avatar
2 votes
Accepted

Measuring image pull latency in k8s cluster

For Kubernetes >=1.30 Kubelet now exports a histogram, image_pull_duration_seconds, for exactly this case. See kubernetes/kubernetes#121719 for details.
Elad Avikzer's user avatar
2 votes

How to get the actual memory usage of a container

SIZE is a bit misleading. Quotes are taken from man ps: SIZE approximate amount of swap space that would be required if the process were to dirty all writable pages and then be swapped out. ...
Tensibai's user avatar
  • 11.4k
2 votes

How do I "Dockerise" a client/server setup using socket.io?

Looks like you need a Dockerfile to build your image. What I like to do is build the image, first, then reference that image in docker-compose.yml such that I am only using docker-compose for running ...
mikequentel's user avatar
2 votes

Can't connect to local mongoDB from Docker Container

podman pod Docker compose is an old technology that allows packaging multiple containers into a unit. This has been largely replaced by podman pod, which provides everything that docker compose ...
Evan Carroll's user avatar
  • 2,231
2 votes
Accepted

What’s the docker compose equivalent of my docker command?

Your compose file looks mostly correct, but there's a small difference between the user specification. In your original docker run command, you're using environment variables (--env UID=1001 and --env ...
Ajay's user avatar
  • 210
1 vote
Accepted

Docker Compose: dynamically change the image architecture based on running host machine

The standard practice is to build multi-platform image under the same name and tag. It would have common manifest, then the machine would resolve the platform based on its architecture. The technique ...
taleodor's user avatar
  • 900
1 vote

Deploy a Redis cluster with Docker

To begin with, note the following text from the Redis documentation: Currently, Redis Cluster does not support NATted environments and in general environments where IP addresses or TCP ports are ...
larsks's user avatar
  • 688
1 vote

How to exit docker run -t

It looks like you've entered into a shell session inside a Docker container running the Alpine Linux image. The prompt ^[[3;5R is not a command prompt but likely a result of some keyboard input or ...
Ahmad Qayyum's user avatar
1 vote

Ubuntu container not running in detached mode

The ubuntu image, by defaults, starts a shell. If standard input isn't connected, the container exits immediately. You can see this even without detached mode; try this: docker run ubuntu:latest You ...
larsks's user avatar
  • 688
1 vote
Accepted

Ignore 'host not found in upstream' in docker swarm environment

When nginx start up it scans its config one time and resolves any static dns entries for servers using the system configured dns. If entries fail, nginx abandons them. However, you can configure ...
Chris Becke's user avatar
1 vote
Accepted

Conflicts while building AWX-EE custom image

nutanix.ncp creates conflicts cause it's the only collection I use that specify python module version requests~=2.26.0 I finally create a new AWX-EE custom image without nutanix.ncp in requirements....
motorbass's user avatar
  • 113
1 vote
Accepted

Why does every image I build have its own repository?

I'm going to share my opinionated definitions that do not match the "official" definitions... One stores one or more Docker images in a Docker repository (or more precisely, this would be ...
mikequentel's user avatar
1 vote
Accepted

How to efficiently copy multiple Docker images between two air gapped repositories?

Instead of transferring the images as a packaged tar file, I'd recommend using the OCI Image Layout format that represents a repository as a directory on disk. Copying contents into or out of this ...
BMitch's user avatar
  • 3,330
1 vote

What is the syntax error in my docker compose file?

By default, some IDEs, such as Visual Code, will look for a standard Schema of the file type "docker-compose.yaml" or "docker-compose.yml". Example For example, I have the most up-...
Enderson Menezes's user avatar
1 vote
Accepted

Specify container IP as extra_hosts in Docker Compose

Solution from here: What’s the proper way to add a record to the WordPress container’s /etc/hosts file with the Traefik container’s IP address? The proper way is not adding anything to the hosts ...
Jeff Lockhart's user avatar
1 vote

Ansible Connecting to remote Docker container over SSH

I have found a hacky workaround for my problem. I replicated the behavior of the community.postgresql.* modules that I want to use in a bash script and execute it using the community.docker....
Tiim's user avatar
  • 11
1 vote

What should I learn next as a devops beginner?

What you should learn next is highly contextual, so I fear this question will be closed as opinion-based. However, there are a few patterns which we tend to see, which may help you understand where ...
Bruce Becker's user avatar
  • 3,623
1 vote

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

A container is nothing more than a process that has been partitioned from the host system and other processes using some linux process isolation technology. Docker - even swarm's - role in this is to ...
Chris Becke's user avatar
1 vote

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

If your trying to do what I think you are it's not done that way, atleast not currently. Answer. If you are trying to put a single service into "Host" mode you have to give it a network that ...
Definity's user avatar
  • 141
1 vote

how to check running containers with containerd

I feel relevant and important to note that: ctr c ls lists all containers, i.e. either stopped or running. In accordance with the question title: to precisely list all running containers (in the ...
adamency's user avatar
  • 111
1 vote
Accepted

A case for exceeding docker's max depth

I ended up using docker-squash. Install: pip install docker-squash Example usage, squash up to <LAYER>: docker-squash -f <LAYER> -t <IMAGE>:squashed <IMAGE>:<TAG>
superAnnoyingUser's user avatar
1 vote

How to prune all but two most recent docker images?

It is also possible to use before filter. E.g., if the question would be about removing "all but 1(one) most recent image", the answer could be: docker images -q --filter before=$nameTag $...
Aleksejs Spiridonovs's user avatar
1 vote

On Azure, how do I run a short-lived Docker container on a schedule?

For short-lived containers, you could use ACA (Azure Container Apps) if you don't want to use AKS or Kubernetes. Then in ACA you can have auto scale rules setup for your container app and scale ...
ReidK's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible