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
1answer
25 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
26 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
16 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
21 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
50 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
25 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
29 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
8 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
17 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
0answers
9 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
27 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
40 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
71 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
76 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
17 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
48 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
42 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
25 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 ...
0
votes
0answers
11 views

nomenclature in connecting to a BaseX database running in a docker container

The directions specify: You can use the BaseX client to connect to the database in the container: docker exec -ti basexhttp basexclient but isn't that a bash command? How do I connect to the ...
0
votes
0answers
15 views

How to create Jenkins build which pack the project to tgz file and push it to artifacotry

I'm trying to practice on dockers, and as part of it, I created 3 containers: Jenkins, Bitbucket, and Artifactory. I'm trying to create a Jenkins job that for every change in a specific project in BB, ...
0
votes
0answers
18 views

What is the workflow to deploy a hello world war file to a Jetty docker image?

I'm just getting started with docker and jetty -- looking to use reasonable techniques for running both. This question is largely a sanity check that I'm at least headed in the right direction. ...
1
vote
1answer
40 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
45 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: ...
0
votes
0answers
18 views

HAProxy container, created with Ansible, is not responding although container is running

I have a playbook which deploys one HAProxy container and 2 Apache containers. Moreover, I also mapped ports and volumes in order to distribute client requests with HAProxy to Apache servers, but ...
0
votes
0answers
11 views

How to configure the logging driver to fluentd as the default logging driver on VMware vSAN VIC VCH

I am runing VCHs on a VMware vSAN VIC, and I would like to set the default logging driver to use fluentd so that I dont have to configure each container individually; how c/an that be done? Note: ...
0
votes
0answers
9 views

Doing a task on pod termination

I have a script that creates openshift objects on start of a pod and on termination. I've created an initcontainer that runs the start script. However I can't find a way to run the termination script ...
0
votes
0answers
13 views

Docker containers cannot resolve hostnames in VMware VIC VCH

I have followed the official guide here, in the section Add Containers to a New Bridge Network, but I cannot replicate the results promised in the guide; I cannot get two containers on a bridge ...
4
votes
1answer
83 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
17 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
40 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 ...
4
votes
2answers
322 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
64 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
143 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
18 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
27 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
75 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
21 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
100 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
31 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 ...
0
votes
1answer
833 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
55 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
29 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
79 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
61 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? ...
1
vote
1answer
33 views

Are there examples of other production grade container runtimes?

While we say "Docker is just one possible container runtime", are there other implementations used in production environments as of late 2019, and do they have different approaches? (while Docker ...
4
votes
1answer
657 views

What are the best practices for anti-virus / anti-malware when using containers?

One of the SOC 2 controls is apparently around ensuring antivirus/anti-spam/anti-malware is running on production servers. I've been googling to see if there are any recommendation/best practices for ...