Questions tagged [docker]

Docker images, containers, hub, and everything related to the containerization platform

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

What part of the Bamboo pipeline should generate a Docker image?

We are using Bamboo to build and deploy a number of Java web applications. Right now, the Build Plans generally produce a WAR file, which is deployed by the Deploy Plans. We are moving our hosting (...
0
votes
0answers
4 views

How do you run a layer 2 bridge and VPN inside docker?

I'd like to run a docker container that operates a layer 2 bridge to its hosts wired LAN. This will let me encapsulate the VPN setup into a nice composable docker image. However, I can't figure out ...
0
votes
1answer
22 views

docker build fails on one machine but succeeds on another

On my own machine (Windows 10, Docker Desktop 2.1.0.3) the build succeeds and runs. On another machine (Ubuntu 18.04, docker CE 19.03.13) the build fails with the error shown. Why does the build work ...
0
votes
1answer
24 views

Ansible fails in Jenkins pipeline when run from docker

I'm trying to deploy a build via Jenkins pipeline using agent docker and Ansible playbook but it fails on Gathering Facts stage as shown below: TASK [Gathering Facts] **********************************...
0
votes
0answers
36 views

How to process output from a “hello world” python script?

This example builds fine: root@mordor:~/gitrepo/path-to-kubernetes/src/python/helloworld# root@mordor:~/gitrepo/path-to-kubernetes/src/python/helloworld# ll total 16 drwxr-xr-x 2 root root 4096 Oct ...
1
vote
0answers
25 views

How to execute a “hello redis” sample python script on a container from the host?

How do I execute this "Hello Redis!!!" sample from the host? root@mordor:~# root@mordor:~# docker container ls CONTAINER ID IMAGE COMMAND CREATED ...
0
votes
1answer
27 views

why is “docker run” used to connect to redis?

Trying to understand what's happening here: root@mordor:~# root@mordor:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
0
votes
0answers
13 views

Topology and configuration of MySQL client and server containers

Perhaps I'm using MySQL in an unusual way. I was thinking of just having alice and bob containers, where the console client is used on one to query the other. I'm probably using MySQL in an obscure ...
0
votes
0answers
15 views

Is the MySQL Command-Line Client on alpine or another minimalist container?

This seems not wholly unreasonable: root $ root $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES root $ root $...
0
votes
1answer
34 views

how to connect to a MySQL database in a docker container?

starting up the default mysql server: root $ root $ docker run --name mysql -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql/mysql-server:latest ...
0
votes
2answers
24 views

How do I make a redis container accessible through bridge networking from the host?

I'd like to be able to connect directly to the redis container below: root $ root $ docker images redis REPOSITORY TAG IMAGE ID CREATED SIZE redis ...
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
47 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
18 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
25 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 ...
0
votes
2answers
35 views

Dockerized node.js and bind mount permission problem

I have an interesting problem with node, docker-compose and local development using bind mounts. I have a bind mount volume, called www-public, owned by my host node user (I created a node user and ...
2
votes
1answer
53 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, ...
1
vote
0answers
20 views

How to organize frontend infrastructure with dockerized MERN

Can you please tell me, how do I organize my frontend infrastructure for MERN stack dockerized app? For example, I will need a container for MongoDB, Node separately, organized with docker-compose, ...
0
votes
1answer
26 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
35 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
9 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
52 views

docker-compose to populate MariaDB/MySQL Database from mysqldump from GH repo referencing docker-entrypoint-initdb.d path on build

I'm dabbling with creating an application that can be built from a single docker-compose.yml file "on the fly" in any Docker / docker-compose enabled machine (most likely for QA, UAT or ...
1
vote
1answer
20 views

Kubernetes used to orchestrate Containerized Machines

0 I am using k8s to orchestrate an environment on a local network. My idea is to deploy a number of linux machines each of which should have its own "External" IP. Right now I found guides ...
1
vote
1answer
31 views

How can I access port 80 of another container, when port 80 is already exposed?

I have a docker file that runs some integration tests between two containers. It looks a bit like this: version: '3' services: test_client: image: client:latest depends_on: ...
2
votes
1answer
46 views

How to add timeout to a helm chart?

I have a helm chart which pulls a lot of images from various registries and deploys a lot of pods. It runs a lot of k8s jobs before getting the pods up. Overall, helm install command takes huge time, ...
0
votes
0answers
16 views

Docker Container CPU usage Monitoring

As per the documentation of docker. We can get CPU usage of docker container with docker stats command. The column CPU % will give the percentage of the host’s CPU the container is using. Let say I ...
2
votes
1answer
30 views

How do I convert “\n” to linebreaks in my docker logs?

I am using docker-compose up to start a web server in linux but am finding that the stdout is printing "\n" characters instead of creating new lines. This makes stack traces difficult to ...
0
votes
0answers
24 views

DockerDesktopVM running on Windows 10 Hyper-V does NOT have a network adapter. How does networking work?

I have installed Docker on Windows10 and setup a Docker transparent lan. The Docker Container is microsoft/iis with a basic web site and http://192.168.xxx.xxx/ is working. In Hyper-V Manager, the ...
1
vote
0answers
45 views

What is the purpose of running PHP-FPM in its own container instead in the same container as apache2/nginx?

I'm fairly new to Docker so excuse any obvious ignorance or misunderstandings. That said, I've been coding and configuring web applications for a long time now. I have recently been dabbling with some ...
0
votes
1answer
42 views

docker run vs docker-compose - different results?

I have just started exploring Docker and am having trouble with docker commit/-compose. I have copied a file into /root/.guacamole/lib (in the container) and then created an image using docker commit. ...
0
votes
2answers
22 views

Minecraft docker-container refuses connection

So I have this Dockerfile: FROM openjdk:8u212-jre-alpine LABEL maintainer "cowboy_patrick" RUN apk add --no-cache -U \ openssl \ imagemagick \ lsof \ su-exec \ shadow \ bash \ ...
0
votes
0answers
23 views

Automated Benchmarking Environment based on Github Actions/Docker/AWS-EC2

We set up a benchmarking platform that allows to easily run docker containers which execute a (self-written) benchmark program with different encryption libraries and write the measured results to a ...
0
votes
0answers
12 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
30 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
71 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 \ > ...
0
votes
0answers
19 views

Variable substitution in .env file for docker run --env-file

I have an env file like following examples.env A="/path1" B="/path2":$A Now, I am running docker using following command docker run --env-file=examples.env This variable $A is not ...
1
vote
4answers
75 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
79 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
19 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
67 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
47 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
85 views

Curl Error in HTTP2 framing layer when trying to install Jenkins plugin

I am trying to create a custom Jenkins docker image. For that I need to install certain plugins in Jenkins. I am doing so by adding the below lines to the Dockerfile COPY plugins.txt /usr/share/...
0
votes
0answers
14 views

Difference between a buildpack and a dockerfile?

I understand a dockerfile to be a comprehensive set of instructions to completely build an application's production (and development for that matter) environment from scratch (or at least from a bare ...
0
votes
1answer
20 views

Include curl commands in a PostgreSQL Docker environment

Using COPY table FROM PROGRAM 'curl "www.example.com/data.csv"'; I am able to copy a CSV directly from the web into a psql table. However, when I am running the same command from inside a ...
0
votes
0answers
17 views

Deployment of Docker containers on ECS(Tcp Server Java)

The given problem: Created a Java Tcp Server with Eclipse vertx(Toolkit for building reactive,event driven)applications on JVM. The applicatino has two Tcp Servers which are running on port numbers: ...
0
votes
0answers
10 views

Is it possible to run multiple builds in multiple docker containers by starting a job build or triggering it from git on Jenkins?

I investigated the plugin to build inside a docker container using a Dockerfile or a docker image, but it seems I don't quite get it yet. For example, I have a job configured on Jenkins which is built ...
0
votes
1answer
13 views

what's the final output image in multistage build?

Below is the dockerfile that creates an image: FROM diamol/base AS build-stage RUN echo 'Building...' > /build.txt FROM diamol/base AS test-stage COPY --from=build-...
2
votes
1answer
31 views

why use multiple From instructions in multistage build?

I'm new to Docker, sorry if my question sounds dumb. below is a dockerfile from a textbook shows how multistage build works: FROM diamol/base AS build-stage RUN echo 'Building...' &...
0
votes
1answer
25 views

is a running container created by each RUN command during multistage build?

I'm new to Docker, sorry if my question sounds dumb. below is a dockerfile from a textbook: FROM diamol/base AS build-stage RUN echo 'Building...' > /build.txt #line ...

1
2 3 4 5
17