Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [containers]

Use for generic questions on containers that do not fall under a specific container technology, like Docker, LXC, FreeBSD Jails, OpenBSD sysjails, Solaris Containers, WPARs, etc. Also use where the specific technology is not relevant to the question.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Collecting logs from Kubernetes container file system (not from stdout or stderr)

I am trying to find a way to get Promtail collect logs from a container file system. These logs were not generated using the standard output, which automatically gets discovered by Promtail. They have ...
kloudkid's user avatar
0 votes
0 answers
10 views

Make AMD GPU available in Docker container

I am running g4ad family instances on AWS. I am running there docker containers where I need to access the AMD GPUs. The used AMI for host instance is Amazon Linux 2 optimised for AMD. The base image ...
Michal Dolnik's user avatar
1 vote
1 answer
30 views

Container orchestration vs. VM orchestration in the cloud

I'm trying to understand the specific use cases where we'd prefer to use container orchestration (Kubernetes) as opposed to VM orchestration (Nomad) in an unmanaged cloud setting (e.g., EC2) It seems ...
shintuku's user avatar
  • 111
1 vote
1 answer
30 views

How to manage lxd server configuration by ansible?

I am trying to set up the lxd global, server settings with ansible. Note, these are not the instance or container settings, these are the global settings of the lxd daemon. For example, core....
peterh's user avatar
  • 151
0 votes
0 answers
17 views

Kubernetes pods container initialization doesn't finish for Dagster

Installation set-up: I'm trying to run dagster on Kubernetes. I use the default values.yaml file and the only change I'm making is replacing "docker.io" with "registry.hub.docker.com&...
TheEsnSiavashi's user avatar
2 votes
0 answers
265 views

How to run nerdctl run inside a container?

This is not for building inside a container, this is for running containerized CLI tools in a Job. I know the security implications. This is a lateral move security wise from DooD just to get us to ...
Shanteva's user avatar
  • 133
2 votes
1 answer
769 views

Processes in "podman build" have lower file descriptor limit than processes in "podman run", how can I increase this?

I'm running podman 3.4.4 on Ubuntu 22.04 LTS server. I have been having podman build issues that are not reproducible if I do those steps after the container build using podman run. Eventually I ...
Tom Boutell's user avatar
0 votes
1 answer
122 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
0 votes
0 answers
27 views

Run Docker container with user who started it

I have two users on host machine usera, userb. I have added these users to the Dockerfile as below. FROM ubuntu:latest ENV DEBIAN_FRONTEND=noninteractive \ TERM=xterm RUN groupadd -g 1111 ...
noonenine's user avatar
0 votes
1 answer
103 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
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
1k 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
0 votes
1 answer
532 views

How to delete an existing label in a deployment with helm upgrade

I have an existing deployment that has the label importance: normal in spec/template/metadata/labels (all the pods spawned from this deployment have that label in them). The current deployment yaml ...
ErnieAndBert's user avatar
3 votes
1 answer
56 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
1 answer
745 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
4 votes
1 answer
82 views

Rationale for using Docker to containerize applications

I'm trying to get a better understanding of the reasons to use [and not use] Docker based on specific use cases. From my current understanding, Docker helps to isolate applications and their ...
ObiHill's user avatar
  • 143
1 vote
1 answer
428 views

Why does stripping executables in Docker add ridiculous layer memory overhead?

On this image, I ran the following command to reduce executable sizes: find -P -O3 /usr/bin/ /usr/local/bin -type f -not -name strip -and -not -name dbus-daemon -execdir strip -v --strip-unneeded '{}' ...
T145's user avatar
  • 170
3 votes
1 answer
556 views

How do I supply a professional license to a Docker image?

I’m using Windows Server Core as part of an image I’m working on. When it's deployed to production, how do I supply a license to it? Besides that, is this license needed to be bought for each image it'...
Mol's user avatar
  • 33
0 votes
1 answer
35 views

How do you securely deploy large number of Kubernetes components in isolation?

Precursor: I am not experienced in the design of large-scale infrastructure deployments for infra applications. The assumptions for the questions: I have read that it is a good practice to host ...
transcend3nt's user avatar
0 votes
1 answer
26 views

Continuous deployment question

This question is not in case of kubernetes but when you use servers or docker for deployment using CICD tool like Jenkins or gitlab. In jenkins or gitlab I've agents/runners and in pipeline stages I'...
Alan's user avatar
  • 23
1 vote
2 answers
983 views

Combine Helm charts or leave separate?

I'm new to Helm and my first task was to recreate a simple pipeline. This pipeline is just: PostgreSQL -> Spark, with ELK monitoring the instances. Someone mentioned I may be able to combine all of ...
Hustlin's user avatar
  • 11
2 votes
0 answers
208 views

PreStop container hook on Pod termination

I have two containers in my Pod (one main app container and another one is just a simple nginx reverse proxy) containers: - name: my-app - name: my-nginx lifecycle: ...
Most Wanted's user avatar
0 votes
1 answer
786 views

How are containers secured with MACVLAN networks?

Containers cannot be connected both to an internal bridge and to the host network at the same time, according to this question. However, this is what I need; I want a set of containers to be connected ...
vpseg's user avatar
  • 11
1 vote
2 answers
3k views

Creating container image without docker

Is it possible to build a container image as a simple user account on a system which does not have docker or podman installed? In other words, is there a user-space tool/application which can build an ...
Plazgoth's user avatar
  • 113
4 votes
2 answers
295 views

Docker vs Virtualisation

I am trying to understand the underlining architecture of Docker. The diagram that's been shown everywhere claims that in contrast with Virtualisation technologies such as "VirtualBox", ...
Mike M's user avatar
  • 143
2 votes
1 answer
142 views

Container deployment sync problem with Ansible

Imagine the following situation after you have switched from docker-compose to Ansible: You start a DB container which needs time to boot up You want to load data dump into it (could be also you ...
Ta Mu's user avatar
  • 6,782
0 votes
2 answers
545 views

How to create a container from an image

I have this following image: REPOSITORY TAG IMAGE ID CREATED SIZE nvcr.io/nvidia/pytorch 18.04-py3 c3555fec4fe6 3 years ago 5.9GB The goal is to use Ubuntu ...
Levent Ozbek's user avatar
3 votes
1 answer
217 views

How to dockerize a jupyer notebooks project?

I have a project composed of 6 different Jupyter Notebooks and 4 CSV files. I would like also my colleagues can try to use this project, even if they don't have python installed and maybe with another ...
Daniele's user avatar
  • 33
1 vote
1 answer
44 views

Check TZ in Container Image without creating instance?

I have a requirement to assure that the container image we build runs in UTC only. I'd like to avoid starting it up just to check the link on /etc/localtime. I thought maybe a tool like dive that ...
Josiah's user avatar
  • 363
3 votes
2 answers
1k 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: ...
Francois's user avatar
  • 131
1 vote
1 answer
508 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 ...
ParisNakitaKejser's user avatar
2 votes
1 answer
5k 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'...
Omori's user avatar
  • 21
2 votes
2 answers
2k 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 ...
Paul H's user avatar
  • 123
0 votes
1 answer
729 views

How can I deal with container "patching" in a strict release process?

I am building a new Container and Kubernetes system for my company. Overall it is going well, but container patching has me a bit confused. We follow a fairly strict release process. New versions ...
Vaccano's user avatar
  • 206
0 votes
1 answer
1k 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'...
TheStoryCoder's user avatar
0 votes
1 answer
45 views

When do I run applications on a server in a pod and when to run them directly on the base operating system?

I am trying to get started in the DevOps Field by setting up a small server currently with Virtualbox, later on for a small team. For my basic setup I plan to use gitea as self-hosted git and Jenkins ...
baxbear's user avatar
  • 101
1 vote
1 answer
47 views

Testing docker image builds when low level libraries change

Background In our organization we have many small repos for shared libraries used among our applications. Particularly, we have many Python libraries and Python applications. We have a structures like:...
flakes's user avatar
  • 121
0 votes
2 answers
225 views

Service to service communication - through proxy or direct?

A common scenario is two or more services behind a reverse proxy, typically each deployed in a container: | service 1 | | service 2 | \ / \ / ...
jramm's user avatar
  • 101
0 votes
1 answer
3k views

How to build, package and deploy a react-native-web app in a Docker container?

Given there is a react-native-web solution, what needs to be done to build it and run inside a Docker container? What is the build environment/toolchain? Which environment is required to run? From ...
Ta Mu's user avatar
  • 6,782
2 votes
2 answers
3k views

Container Image Promotion across environments in ECR/ECS

We have started doing some initial work on deploying containers on ECS Fargate service. However we are not yet completely figured out how to manage our image promotion across different environments. ...
aashitvyas's user avatar
1 vote
1 answer
266 views

How to create a local network mapping in linux

I'm deploying nextcloud via docker, however the way the configuration is set up, it creates a subnetwork at 10.10.10.0/24 on the system it's running on instead of running it on 127.0.0.1. Then the ...
Cmertin's user avatar
  • 21
0 votes
1 answer
332 views

How can I use a buildah script for image generation using GitHub Actions?

Buildah scripts typically use shell. You can see an example of a script here, #!/bin/sh ctr=$(buildah from alpine:3) buildah commit "$ctr" myAlpineImage Let's say I have such a shell script ...
Evan Carroll's user avatar
  • 2,201
2 votes
1 answer
677 views

kubernetes quota vs limit. What are they? How are they different? When should I use one or the other?

I have been reading through the docs but it still is not clear as to why I should use one or the other. They have great examples of how to configure them but don't answer the why for quotes or limits ...
nelaaro's user avatar
  • 121
0 votes
1 answer
66 views

Does RAM Come Into The Container vs VM Decision?

I am currently running a Java trading system on a VM that needs ~32 GB RAM and runs (almost) 24/7. There are a couple of engines linked to it that require 4GB + 8BG respectively. I am considering ...
opticyclic's user avatar
1 vote
1 answer
11k views

Docker Build Ending Up `returned a non-zero code: 1`

Running mktexlsr /var/lib/texmf ... done. Building format(s) --all. This may take some time... done. build.sh: line 81: -: No such file or directory The command '/bin/sh -c bash build.sh' ...
austinsonger's user avatar
3 votes
3 answers
2k views

kubelet connecting to docker.sock instead of containerd.sock

Kubernetes version: latest Installation method: kubeadm Host OS: debian9 container runtime: containerd Kubelet fails when starting and after inspecting the logs using journalctl -xeu kubelet i see ...
hamzahda's user avatar
0 votes
1 answer
210 views

Increase concurrent users by limiting container resources with docker-swarm

Consider the scenario where I have: 4 replicas of an app 4 cores On load, the app consumes 100% for a single core Can I tell each replica to only use 50% of the core and if so, would this allow at ...
tyluRp's user avatar
  • 101
0 votes
1 answer
311 views

How to redirect the request to a different node when there is an unexpected exception and one of the pods gets restarted

We are deploying the application in a Kubernetes cluster and when we face an unexpected error and the pod gets restarted or goes down we are getting a 502 Gateway error even though there is another ...
Sri Krishna's user avatar
3 votes
1 answer
805 views

Change docker container’s log PATH

Team: All my container logs are under /var/log/containers.. Where in kubelet or docker config can I specify this path such that logs are instead created under new path? Ex : /shared ? Instead of /var/...
AhmFM's user avatar
  • 141