Questions tagged [docker]

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

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

pg_dump from Celery container differs from pg_dump everywhere else in other container

I can't understand where pg_dump version is coming from. I forced everywhere postrgresql-client-13 to be installed. /usr/bin/pg_dump --version Celery Beat and Celery pg_dump (PostgreSQL) 11.12 (...
2
votes
1answer
12 views

Point docker container DNS to specific port?

I was wondering if it was possible to assign the DNS server a docker container is querying (via docker run --dns, or otherwise) to be on a specific port, something other than 53? I had built a custom ...
1
vote
1answer
35 views

Building a docker container with multiple conda envs

As a novice to the technology I have only a basic knowledge regarding how to build and deploy a docker so i was hoping someone could provide some help. The situation is the following: I need to create ...
0
votes
0answers
10 views

password not accepted [closed]

What password should I use. I use host OS my account password but it is not accepted m@m-pc:~$ bitmessage ++ docker run -p 8444:8444 -v /home/m/.config/PyBitmessage/:/root/.config/PyBitmessage -v /...
0
votes
0answers
22 views

Docker and Docker-Compose: Problem with InvalidVersion and API Version

My issue is that a docker-compose project (builds three docker images) works on a server A (ubuntu 18.04) but not on server B (ubuntu 14.04). The error I get on server B is the following: Traceback (...
0
votes
1answer
24 views

connection refused from webserver in container

I've got a simple python http server running on port 8080. class Handler(BaseHTTPRequestHandler): def do_GET(self): print(self.path) self.wfile.write(b'\n') return class ...
2
votes
1answer
31 views

How to create network connection into docker stack?

I have a small group of computers to which I deploy my app with sudo docker stack deploy --compose-file docker-compose-distributed.yml QC --with-registry-auth I have one master (?) that runs the ...
1
vote
2answers
45 views

k8s pods not load balanced

I've got a service running in an on premise k8s environment. It is basically an nginx image, and a call takes like 10 seconds. replicas is two and of course two pods are running. But almost if not ...
1
vote
0answers
23 views

Where does the string docker.example.com in my GitLab CI job come from?

I am trying to have a Docker image deployed to my server by GitLab CI, but it only worked once¹ and then dies with the error message below. Here is the .gitlab-ci.yml snippet: deploy-image: image: ...
1
vote
1answer
28 views

A better way to not use dockerhub - permanent config within docker?

I've searched the documentation for docker if this is possible and come up blank, but thought I'd pose the question here before shelving this. Is there a way to just tell Docker to use something other ...
1
vote
2answers
45 views

Restart container if its application hangs

I have a critical container application which task consist of polling sensors and taking consequent action on some external hardware. If the application of the container crashes it's fine. restart: ...
1
vote
1answer
15 views

Is there a way to push tarred repository to dockerhub without loading on local

I have a tarred docker repository created by using docker save. I want to push this tar to a registry, say dockerhub. Is there a way we can do that without loading on local docker?
1
vote
1answer
53 views

Package installed using Dockerfile not available on Jenkins pipeline stage

I'm having sort of a weird problem with my Jenkins pipeline. I've defined a Dockerfile which installs some tools I need for my CI/CD pipeline, such as node, npm, sfdx, and sfpowerkit (a plugin for ...
5
votes
3answers
678 views

Is docker absolutely necessary to deploy applications with Linode's Kubernetes?

Is learning and using docker required to deploy applications with Linode's Kubernetes Engine? (LKE) As fun as docker sounds, I'd like to avoid having to learn that additional complexity if possible. I ...
0
votes
1answer
19 views

Gitlab build from multiple repositories - git submodules

I have gitlab repo ZERO (project) which serves as a code base for multiple websites (repo ONE, TWO, THREE..), these are also gitlab repositories. I am using gitlab CI/CD options, I want to be able to ...
1
vote
0answers
24 views

Simplest way to provide a service between Docker containers

I have a Docker container to run some data processing (running RStudio). At one point it would need to run an external tool (ExtTool) which needs completely different architecture: it's a Windows-only ...
0
votes
0answers
27 views

PROXY is not working inside windows container

I'm using windows containers in windows 10. I've set proxy variables(HTTP_PROXY,HTTPS_PROXY) in environmental variable setup and using VPN. I also configured resources -> Proxies. I was trying to ...
0
votes
0answers
30 views

Docker volume type cifs works OK with docker-compose write not allowed on swarm

I have a docker-compose.yml with this volume inside: volumes: xxx_media: driver: local driver_opts: type: cifs device: //10.1.1.3\Company$$\xxx o: "user=service.it@xxx....
1
vote
1answer
31 views

Docker Swarm stop working with redeploy service, require system reboot

I got a Docker Swarm with 3 nodes, and contain around 40-50 stack on it, now its random stop working to redeploy my new changes its just say in new mode, and really don't know what going one here. ID ...
1
vote
1answer
50 views

Send command to docker image while start in Jenkins file

In scripted Jenkinsfile if I need to send a command to Docker image, I can do like this: docker.image('mysql --default-authentication-plugin=mysql_native_password') How can I do the same in ...
0
votes
0answers
24 views

Testing Raspberry Pi image in a docker container with Packer and qemu

I would like to make a smoke test of a Raspberry Pi image in a docker container. I am building the image using packer.io and the build-arm-image plugin in a gitlab pipeline inside a docker container. ...
1
vote
0answers
21 views

ClamAV server on Azure - how to secure traffic from services?

I would like to have ClamAV service (deployed from clamav/clamav image on Docker hub) which can be called by other services on the same subnet. However, clamd exposes API over TCP and there is no ...
0
votes
0answers
43 views

Error: EACCES: permission denied, open '/opt/app-root/src/.config/yarn'

I'm getting the below error when spinning up my node.js container, on my openshift cluster: Error: EACCES: permission denied, open '/opt/app-root/src/.config/yarn' at Object.openSync (fs.js:498:3) at ...
1
vote
1answer
25 views

Unable to use AWS ECS docker context in bitbucket pipelines deployment step

I'm trying to add a deployment step to bitbucket pipelines that works successfully when I simulate locally but fails when executing the steps in bitbucket. I have created a simple docker image that ...
1
vote
1answer
51 views

Automating deployment of microservices from start to finish

I'm currently part of a team that trains multiple pods of new hires. Each pod creates a client simulated project that involves the following steps: Creating kubernetes namespaces for each pod for ...
0
votes
0answers
32 views

Run htop on a remote machine in a docker container

I want to simulate user trafic (for tests purposes on a product), that's why I want to run a container which would start a SSH connection and run htop (to simulate user trafic) on a remote machine. To ...
1
vote
1answer
44 views

How to communicate between AWS ECS containers

Problem How do ECS containers communicate between each others? Situation I use docker compose ecs integration. In AWS docker context, docker compose up did a deploy correctly. But reverse proxy doesn'...
0
votes
1answer
33 views

Drone is unable to clone GitHub Project

I'm trying to set up drone, but when running a build it fails at the clone step. I'm pretty sure this is a DNS issue and that I just configured the runner wrong, but I just can't figure it out. This ...
1
vote
1answer
28 views

How to do docker build image from dockerfile on Kubernetes 1.20

Kubernetes 1.20 moved from docker to CRI-O as container runtime. I have a scenario where my Jenkins run on kubernetes and does docker build my dockerfile .But the build breaks as docker daemon is not ...
1
vote
1answer
38 views

How would I change the docker's base directory

All my docker related folders are saved in /var/lib/docker. But my / space is very limited. Hence, I would like all of the content present inside this location to go to say /home/User/my_space. How ...
1
vote
0answers
18 views

Redhat Nodejs-minimal yarn not found

Coming across a very odd issue here: Whenever I try using a ubi8/nodejs-14-minimal base image, the build fails with /bin/sh: yarn not found. I have installed yarn already by adding a Run npm install ...
1
vote
0answers
13 views

Self assigned TLS sertificate traefik

My problem is self assigned cert instead of lets-encrypt cert docker-compose.yml: version: "3.7" services: traefik: image: traefik command: - --api - --providers....
0
votes
0answers
12 views

How does Routing mesh in docker swarm mode work?

I'm new to docker, just studying routing mesh. I was wondering How does this concept actually work. I know that all swarm nodes participating, listen and respond to the service port but I didn't ...
4
votes
2answers
91 views

Best Practice for writing DockerFile

I have mostly seen people using following type of pipeline steps(it varies, but in general this is the flow of steps I have observed) Process: clone repo -> build -> test -> create docker ...
1
vote
1answer
56 views

Bootstrapping Galera Cluster in Docker

I'm trying to bootstrap a MariaDB Galera cluster in Docker containers. The following configuration works when I set network_mode: host, but then I can't directly access the MariaDB from inside other ...
0
votes
0answers
22 views

pm2 to start docker-compose

There is plenty of documentation and dicussion regarding running pm2 inside a Docker container. And general consensus seems that you use K8 or docker-compose to handle health checking/auto-restarts/...
1
vote
0answers
21 views

OS level Nginx that proxies to Dockers vs Dockers that each contain their own Nginx

Given a traditional Linux server ie- Ubuntu on a VPS and a commercial app that requires a handful of Docker containers each of which need to communciate to one another ... with one of those containers ...
1
vote
1answer
22 views

Accelerate autoscaled VM boot time

We're using Google Cloud Platform with an autoscaled pool of VM behind a google's load-balancer. When a new VM is created in the pool it starts from a template then executes a startup-script. The ...
1
vote
0answers
32 views

Reducing docker image size - /usr/lib, /usr/local and /usr/bin

I'm trying to reduce the size of our docker image considerably, as it currently stands at ~1.13GB. Given our app codebase takes up ~300MB and the image is based on Alpine, I think it can be a lot ...
1
vote
2answers
69 views

Best Practice for Container Image Versioning

I'm looking for some guidance on best practices for container image versioning and despite reading a number of the best practice guides they leave some ambiguity. I understand that most container ...
-1
votes
1answer
21 views

Should i stop native apache and mysql when running docker?

I have installed MySQL and apache using brew on my local machine and have been using them for several php project environments. Now i want to start learning docker to containerize a new Laravel ...
1
vote
1answer
28 views

Using access tokens on Dockerfile to clone repository: RUN command error

In a Dockerfile, I'm trying to clone several Gitlab repositories that are specified in a file, one per line, using an access token passed as an environment variable set in docker-compose.yml: COPY my-...
1
vote
3answers
83 views

Best Practice for Kubernetes Development Environment

When using kubernetes with minkube locally, what is best practice for a development environment? When using docker, in development I have mounted a volume with the source code, so I can modify code ...
1
vote
1answer
31 views

Purge old docker images, except images that have been used in the past 4 weeks (docker image prune --filter until=672h)

How can I tell docker to prune old images, except any images that have been used in the past 4 weeks? To prevent the oft-cited issue of docker filling our disks in prod, we have a script that runs the ...
0
votes
1answer
26 views

no route to host container registry

After installing docker (ubuntu) the default 172 ip was replaced with 10.200.x.x sudo ip addr add dev docker0 10.200.200.90/24 sudo ip addr del dev docker0 172.17.0.1/16 The machine's ip is 10.203.32....
0
votes
1answer
578 views

Initial file not found on docker-entrypoint

I want to run a container with docker-compose. My dockerfile is installing some stuff and at the end it looks like this: FROM adoptopenjdk/openjdk16 ... COPY ./myfiles /mydockerfiles ...
1
vote
0answers
18 views

How do you find allowed HTTP methods in openshift deployment

In classical application deployment, one could query the web server with HTTP method "OPTIONS" to discover allowed HTTP methods On an openshift application deployement, how could we get that ...
1
vote
1answer
26 views

How can I get logs in real time from a docker container hosted on Digital Ocean

I have a docker container in which I am running Flask and Scrapy. I noticed that when I run and build my container on my local machine I get logs in real time. However, on an Ubuntu instance hosted on ...
0
votes
1answer
22 views

Run docker with bind-mount pointing to non-existent host folder: Where is the data?

I run a docker image with a bind-mount pointing to a non-existing host directory. The docker image then created data into that volume, wherever it may be. The data is accessible on every docker run. ...
5
votes
1answer
70 views

How would you build docker images in Kubernetes while distributing its layer caching among all pod builders at scale?

We are using Azure DevOps as our CICD platform. We have our own self hosted Linux agents which we integrated into our CICD Azure Kubernetes Cluster . We use these agents to build our Docker images ...

1
2 3 4 5
19