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
0answers
11 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:...
0
votes
2answers
18 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 | \ / \ / ...
0
votes
0answers
12 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 ...
0
votes
2answers
26 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. ...
0
votes
1answer
37 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 ...
0
votes
1answer
29 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 ...
0
votes
1answer
17 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 ...
0
votes
1answer
25 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 ...
1
vote
1answer
148 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' ...
1
vote
1answer
29 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 ...
0
votes
1answer
16 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 ...
0
votes
0answers
30 views

How should Kubernetes worker nodes get the correct /run/flannel/subnet.env file?

I am using Kubectl 1.20.2 on the client side and 1.18.9 on the server side. I have deployed EKS, and I have created a cluster. The pods never become ready unless I manually log into the worker nodes ...
0
votes
1answer
21 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 ...
4
votes
1answer
56 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/...
1
vote
1answer
50 views

Why is it necessary to have virtual machines to run multiple server instances?

I'm trying to learn about virtualization and containers. In an educational video it is said that the introduction of virtual machines was a big deal because it made companies available to run multiple ...
0
votes
2answers
251 views

How to get the IDs of Docker Containers that belong to a Service, given the Service name or id

Background I'm trying to maintain some websites running in a Docker Swarm. I want to do security updates on them. In a non-Docker environment, like a VPS, my simple process is that I would connect in ...
0
votes
0answers
3 views

How do we get the rights of a user in Sailpoint?

I’m trying to write a policy violation in Sailpoint. But I don’t know how to get the rights of the user who is asking a new right. I’ve tried this: List links1 = null; IdentityService service = new ...
0
votes
0answers
11 views

How to lunch a Digital Ocean dropplet directly into a container Image?

From a CI pipeline I would like to be able to do the following. Launch a droplet of a specific cpu/ram configuration with metadata to run a specific container image on start up have the droplet run a ...
0
votes
1answer
20 views

Helm Repo: can it host dockerfiles and other image-building artifacts

I have a service that I want to port to Helm. It's a django application that requires memcached and postgresql and a forward proxy like nginx. I would ideally like to have one repository with all that ...
0
votes
2answers
290 views

Can I upgrade a docker image/container from buntu 18.04 to ubuntu 20.04?

I have a host ubuntu 20.04 running my software on docker with a container derivated from ubuntu 18.04. I would like to use ubuntu 20.04 for several reasons (like the better software on 20.04). If I ...
0
votes
1answer
32 views

hello world with flask and redis using docker networking

The sample from Docker, a "hello world" with redis and flask, seems to build fine, but, as an exercise can it be broken into two components? The redis service uses a public Redis image ...
1
vote
1answer
720 views

docker-compose up: Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use

specific error: ERROR: for traefik Cannot start service traefik: driver failed programming external connectivity on endpoint frappe_docker_traefik_1 (...
0
votes
0answers
108 views

Docker/Web Noob trying to get a Flask MongoDB app to work with a Meinheld-Gunicorn-Flask Docker image

I found this: https://github.com/tiangolo/meinheld-gunicorn-flask-docker after multiple failed attempts to follow along various tutorials on the web to containerize my app to build a CI pipeline. My ...
0
votes
1answer
44 views

how to push an image to docker hub?

How do I push this image to docker hub? root $ root $ docker images helloworld_web REPOSITORY TAG IMAGE ID CREATED SIZE helloworld_web latest ...
2
votes
1answer
66 views

How to Connect Docker Containers?

In "What is a container?" the docker docs show the following nifty image: For my scenario I have only App A and App B; let's designate them Alice and Bob. How do Alice and Bob communicate, ...
0
votes
1answer
28 views

How to deploy MySQL server repeatedly

From fifty-thousand feet, how are, for example, multiple MySQL containers handled? In the context of my limited experience, simply running the container is insufficient, with additional configuration ...
0
votes
1answer
109 views

How to gain console access to a MySQL server running on a docker container from the host?

I thought I had this working a few minutes ago: root $ root $ docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS ...
0
votes
0answers
45 views

from docker container: intermittent error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket

Help me to understand what's happening here with regards to connecting to the database: root $ root $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED ...
0
votes
0answers
9 views

how to connect to MySQL from the MySQL command line client with docker? [duplicate]

Trying to connect to MySQL: root $ root $ docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES root $ ...
0
votes
0answers
96 views

How to automate Asterisk on Kubernetes with Ansible?

From thirty-thousand-feet, how would I use an existing ansible playbook in the context of Asterisk using Kubernetes? Or, coming at this in a step-wise fashion, what's the smallest indivisible portion ...
0
votes
1answer
109 views

How to gain root access to an existing docker container?

Able to get a response from the docker hub basex container: nicholas $ nicholas $ lynx http://localhost:8984/ --dump No function found that matches the request. nicholas $ Ran the container as: ...
0
votes
1answer
922 views

docker: Error response from daemon: Conflict. The container name “/basexhttp” is already in use by container

Am I even correctly following the documentation on creating and running a docker container below? [root@ ~]# [root@ ~]# docker run -d \ > --name basexhttp \ > --publish 1984:1984 \ > ...
1
vote
4answers
341 views

how to start a docker container which dies immediately after startup?

On the understanding, from #docker on IRC, that the basex container from docker hub died after starting up, how do I now make it run something which doesn't immediately exit? I'm only trying to get a ...
0
votes
1answer
438 views

cannot get bash prompt: Error response from daemon: Container foo is not running

A basic jetty container: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ...
0
votes
1answer
41 views

Can't access startfile http://localhost/

Having created a docker container as: docker run -d --name=jetty jetty How do I now get a hello world page as? Looking up localhost:8080 Making HTTP connection to localhost:8080 Alert!: Unable to ...
0
votes
1answer
258 views

How to create a “silent” MySQL docker container?

How can I create a MySQL docker container as below in the background: root:~# root:~# docker run -e MYSQL_ROOT_PASSWORD=pass --name sql-db -p 3306:3306 mysql & [1] 137878 root:~# 2020-09-01 08:25:...
0
votes
2answers
277 views

how to send a password to MySQL with docker?

Just getting started, want to run the downloaded version of mysql: root:~# root:~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE basex/basexhttp ...
0
votes
1answer
87 views

Can't hit redis using DNS name in multi-container pod on Kubernetes

Can anyone shed some light on why this might not work? I can access redis just fine using the pod's IP address, $ rdcli -h 10.152.183.65 10.152.183.65:6379> but when I try to use the DNS name, I ...
1
vote
1answer
48 views

Why is Docker best practice to minimise the number of layers in an image?

I see here that Docker best practices says .. minimise the number of layers in our images The tips given are to chain multiple lines in the dockerfile with \ so as to combine many lines of code into ...
0
votes
1answer
58 views

Is it possible to install bitbucket container on Centos?

I'm trying to run the below composefile on centos7: version: "3.3" services: bitbucket: image: atlassian/bitbucket:latest ports: - 7990:7990 - 7999:7999 networks: ...
4
votes
1answer
93 views

How not expose my backend

I'm studying Docker and how to properly publish my containers coding a very simple web application. It has only two containers, backend and frontend. I've published the source code here: https://...
1
vote
1answer
20 views

Linking nodes in a cluster to run a single instance of a docker container

In this cluster, there are 11 identical nodes, each with 16gb of memory. So far, I've been able to connect each node of the cluster to a docker swarm hosted on the control node. My end goal is to run ...
3
votes
1answer
56 views

Porting a docker container to a different Linux host OS

I'm new to Docker. I have looked at many tutorials, however, this is still not clear to me : For example, If I create a docker image on a system which is using Ubuntu as the host OS. Can I then later ...
5
votes
2answers
1k views

Stress testing for docker container

I want my container to die under high pressure to check monitoring and alerting as well as compose autorestarts. What is best way to simulate heavy load within docker container. I've tried so far ...
1
vote
0answers
112 views

Can't install Docker Engine On Windows Server 2019 in an Air Gapped network

The organization I work for has a tightly air-gapped network. I need to be able to run my applications in docker containers, so I need to install Docker Engine on Windows Server 2019. I have followed ...
1
vote
3answers
517 views

Can I run a Ubuntu 16 Docker image on a Ubuntu 18 host? Will I need to install hardware drivers already available to the host?

We have some Docker images built from Ubuntu 16.04 base image, and we've been running them on hosts running Ubuntu 16.04; these hosts are laptop computers from different makes. However, we have had ...
0
votes
1answer
25 views

Should my zombie backend container be restarted when database is down?

I have a situation where I have a Postgres and a Node server which connects to it. I am using Kubernetes to deploy them. If my Postgres container fails and stops working then its livenessProbe will ...
1
vote
0answers
49 views

How to get parent Docker container ID in docker-in-docker-context?

While running a Docker container inside another Docker container, how to get parent container's ID?
0
votes
1answer
434 views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
1
vote
1answer
25 views

Auto-managed docker-compose volume not shared among containers

I have a bit of hard time understanding the way docker-compose handles auto-managed volumes. Here is an example docker-compose.yml version: '3.7' services: one: image: alpine command: sh -c ...