As of May 31, 2023, we have updated our Code of Conduct.

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
1 answer
19 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
  • 194
0 votes
0 answers
22 views

Error registering container in Gitlab

I'm trying to register a container in a project, I thought it was a passing problem, but it persisted. I created a new project still holds. I never got around to using Gitlab's registry for containers....
eddi's user avatar
  • 1
0 votes
0 answers
10 views

Why does k8s by design uses 3 ports for NodePort's services instead of just 2

I am seeing that to create a nodePort service using a yaml manifest there are three port parameters to enter: port, targetport and NodePort. To give an example, I have this hypothethical manifest: Now ...
Eugenio.Gastelum96's user avatar
1 vote
1 answer
55 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
0 votes
0 answers
132 views

Why k8s with minikube NodePort are not working?

I am using minikube on my windows 11 machine just to start testing k8s. And my NodePorts are not giving an URL, and even when I recover the service's I.P and ports by using kubectl describe and I use ...
Eugenio.Gastelum96's user avatar
1 vote
1 answer
63 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
1 vote
1 answer
123 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
  • 11
0 votes
0 answers
54 views

docker-compose.yml - Inheritance of Services and Environment Variables

What I know There is a extends keyword services: base: image: image01 environment: BASE_VAR="Something" service01: extends: service: base There are ...
Pixelbog's user avatar
0 votes
0 answers
21 views

How do I schedule to run a docker python app hosted on Azure Container Registry with timed tasks?

I have pushed a docker python app to ACR already and I would like to be able to set up and manage "cron" tasks in order to run the image with custom run commands. For instance: Take image A ...
LucaM's user avatar
  • 1
0 votes
0 answers
135 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
0 votes
0 answers
12 views

What feature of Windows used by Docker

I know docker is based on cgroups and namespaces in Linux operating system, but I wanted to know what feature in Windows used by docker to implement containers? Somebody could explain it?
Milad's user avatar
  • 101
3 votes
1 answer
39 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
  • 196
0 votes
0 answers
19 views

Print application log in an external directory from Golang application deployed in Kubernetes cluster

I am new to containerization. I have a Golang application deployed in a Kubernetes cluster inside an Ubuntu VM. I can access the application log using k logs -f <pod-name> command. However, I ...
Pramit Pakhira's user avatar
0 votes
1 answer
231 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
0 answers
538 views

Access docker container through a fake domain name for better usability, with docker compose

I was developing a docker-compose setup for improving local development. My intention is that we could access some URL like https://api.testapi.local, instead of using http://localhost:8000. Is it ...
Fabricio Munhoz's user avatar
1 vote
0 answers
150 views

Best practice for database migration with Kubernetes and docker

Is there a best practice for initializing and managing database schema(and seed data) for containerized backend applications? I'm currently developing an on-premise application deployed at the ...
HyunnoH's user avatar
  • 11
0 votes
0 answers
29 views

What is the best practice for containerizing a cross-platform CI/CD environment?

I'm looking for advice on what the best practice is for implementing a containerized CI/CD environment within GitHub Actions, which supports Windows, MacOS & Linux (Ubuntu) environments, used for ...
John Bergqvist's user avatar
4 votes
1 answer
61 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
0 votes
1 answer
209 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
  • 160
3 votes
1 answer
229 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
30 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
0 answers
19 views

How do you ensure users do not bypass Kubernetes security and interact with the Container runtimes directly?

You could have Docker and Kubernetes installed on the same host and allow the user to access both binaries. A malicious user can potentially bypass Kubernetes security (e.g. PodSecurityPolicies), by ...
transcend3nt's user avatar
0 votes
0 answers
18 views

How do you isolate Kubernetes components in a network?

When I install Kubernetes on a host, all the core components (etcd, Kube manager, scheduler) are all installed on a host by default. Is there a use case or need to deploy Kubernetes components ...
transcend3nt's user avatar
0 votes
1 answer
25 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
244 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
0 votes
0 answers
67 views

How merge 2 bare tar gz images into one?

I use nix docker tools to build 2 image files I load using docker load. One is for x86 and other for arm. Both images from same debian image. Unfortunately nix does not support cross builds like ...
Dzmitry Lahoda's user avatar
0 votes
0 answers
20 views

Is database persistence scaled outside of a container in general and Kubernetes in particular?

Kubernetes launches thousands of containers on demand. I thought this was to accommodate load and scale as needed, load balancing between all the containers. What happens to the database? Do they ...
learntofix's user avatar
2 votes
0 answers
109 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
377 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
0 votes
2 answers
692 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
  • 103
4 votes
2 answers
160 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
62 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
1 vote
0 answers
71 views

Access AWS Secret inside docker file

I have a docker file running on AWS that looks like the following: FROM ubuntu:latest RUN apt-get update RUN apt-get install -y python3 RUN apt-get install -y git RUN git init RUN git clone https://&...
arnino's user avatar
  • 111
1 vote
0 answers
23 views

Private certificate authority and container images

We have a internal domain name, let's say "mycompany.net" with a private CA which delivers all our internal application HTTPS certificates for this domain like "myapp.mycompany.net"...
Gaël J's user avatar
  • 111
1 vote
0 answers
50 views

Best Practice for Managing Ephemeral Storage on Bare Metal Kubernetes Instance?

Host OS: Ubuntu 20.04 Kubernetes: 1.23 RAM: 64g HDD: 3.7Tb Containers are failing and rescheduling due to low ephemeral storage. Ex. The node was low on resource: ephemeral-storage. Container <...
bobandweave's user avatar
0 votes
2 answers
304 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 ...
Onur-Andros Ozbek's user avatar
0 votes
0 answers
415 views

Access API on a container from another container

I have 2 containers A and B which both contains webapps A is listening on 443 (apache2) B is listening on 4000 (node.js) Since I need to access to both services with https from my machine (win10), I ...
Martial's user avatar
  • 101
3 votes
1 answer
78 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
32 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
  • 323
1 vote
0 answers
26 views

Launching VM instances only when needed

I am looking for the right tool to launch VM instances on a cloud platform only when I need them. Once launched, they should run a containerized script (let's call it a job) that runs for about 5 to ...
nicoco's user avatar
  • 111
3 votes
2 answers
559 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
249 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
4k 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
985 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
414 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
  • 194
0 votes
1 answer
652 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
43 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
42 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
136 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
2k 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