Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
1k 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
1answer
58 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
164 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
75 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
34 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
33 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
229 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 ...
1
vote
1answer
22 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
44 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: ...
3
votes
1answer
2k 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, ...
2
votes
1answer
46 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 ...
3
votes
1answer
1k 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
375 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
206 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
1answer
322 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: ...
1
vote
1answer
3k 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
759 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
1k 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
110 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
473 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
1answer
825 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
1k 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
1answer
492 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
1answer
18 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
32 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
33 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
vote
0answers
20 views

How to fetch PublishedPort from inspect

I'm trying to fecth the PublishedPort from my docker service. I think I'm close to fetch it. Here is the data : [ { "ID": "a51ijaddvaf1paeh1dn5p1k3", "...
1
vote
0answers
27 views

What is the best way to deploy a short living process when you have no machine?

I'm new to devops . I created a converter and want to deploy it . The converter converts a 3D model from a format to another and then you'll be able to visualize the outpout file on the platform and ...
2
votes
2answers
60 views

Unable to build Image as it is asking some input

I am trying to create an Image which will run ftp server on centos. Dockerfile content is as below: FROM centos RUN \ yum update -y && \ yum install vsftpd -y EXPOSE 21 CMD vsftpd -...
0
votes
3answers
120 views

Docker container host machine communication

Hi i’m trying to communicate with mongodb in the host from a flask container… So using “docker.host.internal” on the URI didn’t work (host machine is Ubuntu) Any suggestions ?? To solve this
0
votes
1answer
230 views

Combining Two Containers

I'm working on a Windows laptop and running Docker for Windows on it. I want to run an Ubuntu container with a specific version and a MySQL server on it. So the question is, do I have to download ...
1
vote
1answer
58 views

What is the best way to set up a CI/CD pipeline on ECS?

There are so many options: Docker-compose with ECS cli looks the easiest solution Terraform CloudFormation (looks complex!) Ansible I am only interested in setting up a basic ECS docker set-up ...
1
vote
1answer
55 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
2k views

Secrets in Docker without Swarm

I am using Docker, but not Swarm (or any other orchestration) for a project. Is there a way to leverage Docker Secrets without Swarm?
3
votes
1answer
5k views

docker-compose healthcheck for rabbitMQ

I'm trying to run rabbitMQ using docker-compose, but the service is always starting or unhealthy. rabbit is running fine, so I suspect there is something wrong with my health check. Running the ...
2
votes
1answer
643 views

How to prune all but two most recent docker images?

I'm building images on a small server and spinning them up with docker-compose. When it's disk gets full I run docker prune -a so all the stopped containers, dangling image are cleaned out. But I'd ...
7
votes
3answers
398 views

Who should write Docker files?

Once again company debate rages on who should write Docker files (including compose, interchangeable for this post). The scenario is common in my work (developer and consultant) and I wanted to know ...
1
vote
1answer
118 views

GitLab keeps loading and finally fails when deploying a dockerized node.js app

GitLab Job Log [0KRunning with gitlab-runner 13.2.0-rc2 (45f2b4ec) [0;m[0K on docker-auto-scale fa6cab46 [0;msection_start:1595233272:prepare_executor [0K[0K[36;1mPreparing the "docker+machine&...
1
vote
1answer
57 views

Sending HTTP requests to private EC2 DNS from other EC2 host works, but not from container on EC2 host

I want to make a container hosted on one EC2 host communicate with another container hosted on another EC2 host. Currently, if I send an HTTP request from host A to host B using host B's private DNS ...
0
votes
2answers
870 views

Jenkins - docker login doesn't seem to persist: docker pull won't work but docker-compose can pull without problems

I am setting up a new Jenkins as our old one is based on a deprecated base image. Dockerfile is: FROM jenkins/jenkins:lts-centos7 USER root RUN yum -y install docker \ && yum clean all ...
3
votes
3answers
451 views

Accessing a AWS docker instance via localhost only?

Suppose I have two apps launched via the AWS ECS cluster (using Docker containers). I want to expose one app to the world via a public IP (and I do it via the AWS load balancer) but the other one I ...
0
votes
1answer
301 views

Gitlab CI push to docker-registry fails

I have GitLab server and a separate docker-registry. I have created a testuser with a testpassword. My .gitlab-ci.yml image: docker:latest services: - docker:18.09.7-dind variables: ...
4
votes
1answer
126 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
38 views

What do I need to do as to prevent docker from downloading when I `run`?

If I don’t want anything to download when I run docker run -ti --rm \ -v /home/sable/heudiconvTest/BIDS:ro \ -v /home/sable/heudiconvTest/qsipOutput:/out \ pennbbl/...
1
vote
1answer
33 views

How to create a second IP just for dockers

Problem: my server is already using port 80 and I would like launch another service that uses port 80 on another address (I don't want to remember ports or force my wife to use non-default ports). I'...
0
votes
1answer
46 views

How does Kubernetes terminate an instance after helm upgrade

I have a node.js application that is running on a Kubernetes cluster, I am using helm to manage it currently. I have ran into a bit of an issue, when the application starts it connects to a service ...
2
votes
1answer
1k views

Can I use AWS Step Functions to launch many different fargate 'runs'?

I am building a service that has two independent steps. The first step is a data transformation step that has to happen and is common to all downstream processes, then the second is starting a few ...
1
vote
3answers
685 views

Trick a docker containers DNS to resolve a different url

I am not sure I know the terminology to describe this correctly, my apologies. But for a contrived example. Say I have a docker container that runs code that accesses "google.com". But I want all ...
3
votes
0answers
563 views

Remote connection from Docker container by FTP

I built my docker image and run it: docker run --rm -P -d test:latest Then I entered the command and opened connection: ftp open XXX I successfully connected and entered user data. After that I ...
2
votes
1answer
65 views

Docker calls to detect app crashing inside it

Is there a way to know if an app has crashed inside docker using maybe bash script or API call from host container, am implementing CI/CD using Jenkins and will be deploying the built app via ssh to ...

1
3 4
5
6 7
19