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
7 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
15 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
0answers
29 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/...
2
votes
1answer
48 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
104 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
8 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 ...
1
vote
1answer
19 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
82 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
27 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
336 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
39 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
40 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
61 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
72 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
23 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
39 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 ...
-1
votes
0answers
21 views

How to connect to a BaseX database with docker?

How do I create and populate a database without root? root $ root $ docker run -ti -d --name basexhttp --publish 1984:1984 --publish 8984:8984 --volume "$(pwd)/basex/data":/...
0
votes
1answer
40 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
225 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
159 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
98 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
28 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
137 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
123 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
51 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
45 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
52 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
88 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
18 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
46 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
723 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
85 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
313 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
35 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
218 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
22 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 ...
1
vote
4answers
133 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
0
votes
1answer
78 views

How to pass parameters to a container orchestrated by Kubernetes similar to running the container at the command line using the docker run command?

Background I have a docker container that I run in the following fashion: docker run --rm my-custom-container:latest --username me --password yes --url "https://my.url" The container does what ...
1
vote
1answer
1k views

Can't make MySQL 5.7 work with Docker Compose, no matter what

I'm configuring a docker compose file, and the first step is to configure the MySQL service (so I can further use in my app service), but no matter what, I cannot enter MySQL within the container, ...
1
vote
2answers
2k views

docker | database connection refused between two containers

I have a mysql database running with the following docker-compose.yml: version: '3.3' services: db: image: mysql:5.7 restart: always environment: ...
0
votes
1answer
69 views

Azure Windows Container: How to read secrets from an azure vault

I am coming from AWS / Linux and try this in Azure / Windows, now. The Question: I have a windows container in Azure and want it to get some secrets from an Azure Vault. How can I do that? This is ...
1
vote
1answer
30 views

How to develop a docker container for laravel without laradock or docker-compose

I am very new to docker. I want to build a laravel development environment with docker. I already tried laradock but it seemed complicated for me. I was wondering whether it is possible to create a ...
5
votes
4answers
1k views

ERROR: Unable to read database state: No such file or directory

I was trying to install Photon by pulling the docker image. But when I run docker build -t photon . I am getting the below error. ---> Running in 3076fb42ef8b ERROR: Unable to read database state:...
0
votes
2answers
30 views

Configure Kubernetes with docker container on Ubuntu VM

I am using the YAML file to deploy the container on Kubernetes with some replication factor on a hosted machine. YAML File apiVersion: apps/v1 kind: Deployment metadata: name: mojo-deployment ...
2
votes
3answers
83 views

How to get the next friendly name that Docker will assign to the container it will make?

Background When you start a Docker container as in the following example: $ docker run -ti ubuntu:latest Docker docker automatically assigns the container an ID and a friendly name. Docker ...
2
votes
1answer
97 views

What's the relationship between ContainerD and Docker?

I'm aware that Kubernetes uses containerd internally and that containerd is part of Docker. Does that mean that Kubernetes only uses certain parts of Docker to provide orchestration of containers? ...