Questions tagged [docker]

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

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

My Python application doesn't communicate with MySQL inside docker. Can someone help me?

The connection is not succeeding in docker. Look at my settings: Dockerfile FROM python:3.8.5-alpine WORKDIR /app COPY requirements.txt . RUN python3 -m pip install --upgrade pip RUN pip install -...
1
vote
0answers
10 views

docker-compose does not update /etc/hosts at build time

When building an image of a docker container I need to access a service on host localhost. It looks like --add-host option for docker command updates /etc/hosts both at image build time and container ...
0
votes
1answer
8 views

How to create a docker-compose that builds a private Gitlab project

I'm creating a solution that is hosted on Gitlab. This solution so far is composed of 4 private micro-services, namely: user: git@gitlab.com:{SOLUTION}/api/user grant: git@gitlab.com:{SOLUTION}/api/...
0
votes
1answer
9 views

Contradictory output from ps -all after starting a docker container multiple times?

I'm having trouble understanding the output of docker ps -all after starting the same docker container multiple times (because there is a problem with my understanding of docker). To illustrate the ...
0
votes
0answers
19 views

DevOps Engineer [closed]

I have recently joined a company as a DevOps engineer. so can you suggest to me, how should I start this journey as I am new in DevOps? And what should I learn so that I can get an offer from a ...
1
vote
1answer
15 views

Names field in docker ps -a command

When I run the "docker ps -a" command following command I fields: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
0
votes
0answers
13 views

Access API on a container from another container

I have 2 containers A and B which both contains webapps A is listening on 443 (apache2) B is listening on 4000 (node.js) Since I need to access to both services with https from my machine (win10), I ...
0
votes
0answers
19 views

Do the new changes to Docker licensing (with paid subscriptions) only apply to users of Docker Desktop?

Do the new changes to Docker licensing (with paid subscriptions) only apply to users of Docker Desktop? Reading the Docker FAQs regarding Updated Docker Subscription and Licensing Questions, it ...
2
votes
1answer
26 views

Is it good or ok or a bad practice to add Dependency via a RUN command in Dockerfile?

I am trying to create an image using a multi-stage build for a node project. I am using NestJs for the project since it uses TypeScript, and if I install only production dependency in the production ...
0
votes
1answer
17 views

docker-credential-desktop.exe not installed

Moving from Docker Desktop for Windows to Docker Server / CLI for Linux to escape the license fee, I used the standard documentation for Ubuntu to install docker into my WSL2. After frankensteining it ...
0
votes
0answers
14 views

Use buildx in Jenkinsfile for platform specific build

I'm currently building my docker image declaratively in a Jenkinsfile by: app = docker.build("...") Now I need to generate a platform specific build for ARM64. For this purpose docker ...
-1
votes
1answer
18 views

is the Docker Certified Associate exam still endorsed by docker?

I'm trying to find some certifications and I found some info about the DCA but I can't find something about it on Docker's actual website. The only exception is a blog post from 2018. What ...
0
votes
1answer
18 views

How to start a container with NFS volume if NFS server is offline?

This issue is similar to one posted a couple of years ago but with a slight difference. I'm trying to identify how to spin up a Docker container which has an NFS Volume mount whether or not the NFS ...
0
votes
0answers
7 views

Restoring backed up data to influxdb pod via post-hook helm job

I have a influxdb pod created via helm chart from bitnami running in my kubernetes cluster with bind address enabled at 8088. I would like to import data into it after deployment of the pod. For this ...
3
votes
1answer
31 views

How to dockerize a jupyer notebooks project?

I have a project composed of 6 different Jupyter Notebooks and 4 CSV files. I would like also my colleagues can try to use this project, even if they don't have python installed and maybe with another ...
0
votes
1answer
14 views

Check TZ in Container Image without creating instance?

I have a requirement to assure that the container image we build runs in UTC only. I'd like to avoid starting it up just to check the link on /etc/localtime. I thought maybe a tool like dive that ...
0
votes
0answers
20 views

'PHP Fatal error: Uncaught Error: Class "PHPUnit_Framework_TestSuite" not found in xyz.php:3' when running PHPUnit in a docker container

Update The error changed from "Error in bootstrap script: Error: Class "PHPUnit_Framework_TestSuite" not found" to PHP Fatal error: Uncaught Error: Class "...
1
vote
3answers
119 views

docker-compose exec does not execute command even when container is running

I have a docker-compose-custom.yml file like this: version: '3.8' services: myapp-back-preproduction: build: context: . container_name: myapp-back-preproduction image: 'myapp-back-...
1
vote
1answer
50 views

From inside a Docker container, how can I consume an API that is on the machine's localhost?

First of all, please forgive me if any information is missing or if my question does not meet the standards required by the site. I have very basic knowledge of docker, linux and networking and I am ...
0
votes
1answer
25 views

how to schedule container in GCP

I have 5 tasks in my project that need to be run periodically. Some of these tasks are run on a daily basis, some on a weekly basis. I try to containerize each task in a Docker image. Here is one ...
1
vote
1answer
57 views

Colored logging messages from Python script within GitLab CI

I am using a docker container for my GitLab CI and would like to have any output/logging messages in color inside the CI. What I mean: the commands from .gitlab-ci.yml are in color, but the outputs of ...
2
votes
0answers
32 views

How do I deploy and configure a MariaDB (Mysql) image for remote connection?

Specifically: I want to deploy a docker mariadb image to Heroku, that my other heroku app will connect to, in part because I want that skill, in part so I can extend the architecture in the future, ...
0
votes
1answer
72 views

Python not connecting to mongodb in docker container

I have a simple python script which fetches certain values from the mongodb database. The script works fine on my local machine(host machine) but when i containarized my aplication it doesnt work. ...
0
votes
0answers
51 views

How to add jar to java.library.path in a docker container?

My java app has an X dependency as jar. This will be downloaded from mvn repo and added to target/libs. When I containerize the app, it runs without any issue. When I run the container in non-root ...
0
votes
0answers
26 views

Problem with kong's keep alive (api gateway)

I have 5 k8s worker nodes that each of them run a kong instance. I also have 24 upstream servers. One month ago the number of my threads on the upstream servers increased dramatically, therefore, I ...
0
votes
2answers
41 views

Automate starting and stopping of multiple containers on single production server

I am doing a project for my university where I have the following requirements: I want to start and stop (docker) containers with different apps I have a singe (university) server to my disposal I ...
0
votes
0answers
7 views

Tools for "scanning" container (hardening) vulnerabilities vs tools for "performing" the hardening

Container hardening is the process of fixing the vulnerabilities. CIS has published a list of container vulnerabilities which should be addressed to complete the hardening process. Q1. Are there ...
2
votes
1answer
36 views

CentOS Docker Container running Libero SoC: Unable to to connect to X Server [closed]

I am running Libero SoC on a CentOS Docker Container (CentOS Linux release 7.9.2009 (Core)). This container will be used to build FPGA code within a CI/CD pipeline. When I attempt to execute a script (...
1
vote
1answer
73 views

How to migrate away from `docker-machine create`?

I have an old script that uses docker-machine create to create an number of Hyper-V VMs and run a server application inside each one, using docker. It was done this way because the application ...
0
votes
0answers
15 views

Access application that is behind a vpn container

I created the following setup: Docker host: machine at home network that runs the docker containers. openvpn - A container that uses openvpn to establish a VPN connection to my vpn provider. nzbget -...
3
votes
1answer
40 views

Deliver docker container on the server with no internet

I have a project which is written in Python. After I push it's going to be pulled by another team and after that they are going to deliver the project to windows server machine wich has no internet. ...
0
votes
1answer
34 views

Can one run a docker container with systemd from a jenkins pipeline?

I have been unsuccessful running a docker container with systemd from a jenkins pipeline without getting the following error message: ERROR: The container started but didn't run the expected command. ...
1
vote
2answers
36 views

How to start start applications one after another with a shell script?

I'd like to automatically start all of the following applications after the system startup. However, they need to be started in a specific order and when the previous application is done booting. The ...
0
votes
0answers
25 views

Сontrol Windows-containers from Ansible directly through "docker" connection-plugin

Is it possible to control Windows-containers from Ansible with "docker" connection-plugin? I.e. with ansible_connection=docker in inventory-file? My current environment: Running dockerd -H ...
0
votes
1answer
37 views

Execute python file existing inside image with Jenkins

I have an Image A, which has a python file "main.py". I want to know how I can use Jenkins to run that file from a different pipeline. I want to use Jenkins to go inside that image and then ...
0
votes
0answers
69 views

Hosting Wiki.js using nginx-proxy

I am having difficulty getting Wiki.js hosted on a server. My current setup is using docker-compose utilising a reverse proxy with the eventual aim to host some services. I have successfully managed ...
0
votes
0answers
9 views

Reduce build time in GitOps by using Docker image layers from previous build with Azure Registry

I'm building a Docker Image on Pull Requests in my GitOps setup. The images are built and pushed to Azure Registry. Often, it's only a small update in the code, and if I could reuse the layers from ...
1
vote
1answer
30 views

How to ensure data protection on remote server?

We have sensitive data from a customer and need to train a Neural Network for our customers. However we have no severs to train the Neural Networks, so we want to rent GPU servers. There are many ...
1
vote
2answers
68 views

How to expose a service ( Experssjs Api ) deployed on minikube ( 192.168.49.2 ) to be able to access it from another device in the same network?

I've created a service inside minikube (expressjs API) running on my local machine, so when I launch the service using minikube service wedeliverapi --url i can access it from my browser with ...
0
votes
0answers
7 views

How Public facing haproxy node can see on premise haproxy container?

I have internet facing node running haproxy and openvpn server which is connected to a container which is running openvpn client and to that container I have connected another container running ...
0
votes
1answer
80 views

cap_add and device options not working in docker stack file

I am trying to start docker container on the rockpix node with cap_add and device options but docker stack errors saying $ docker stack deploy -c docker-stack.yml vpnproxy services.vpn_proxy.deploy ...
0
votes
0answers
43 views

cni0 already has an ip address

I've got a k8s (on-premise) cluster with 1 master and 3 workers, all ubuntu, latest LTS version. 2 workers are running fine, but pods getting scheduled to one stay in the ContainerCreating state with ...
1
vote
2answers
364 views

DNS resolution fails when container is started via docker-compose

I recently decided to try out windows containers and i am using my private minecraft server for that purpose (as a hobby project). I have an image prepared, based on Windows Server Core 2022. When i ...
1
vote
0answers
49 views

Keepalived docker container crashing

This is my new experience with using keepalived, I am trying to start docker container of keepalived but it is crashing the error log doesn't explain much: *** Running /container/run/process/...
0
votes
0answers
10 views

MS SQL 2019 operator in k8s is ready for production?

ITNOA I am searching about MS SQL Server 2019 K8s operator very much, but I don't find any comprehensive documentations or help pages I just found Availability Groups on Kubernetes in SQL Server 2019 ...
0
votes
0answers
16 views

How to load several environment variables without giving env and args only giving settings.env file in the Dockerfile?

NOTE: Here we don't use docker run command and docker-compose.yml only using dockerfile and settings.env how can we can achieve this requirement.
0
votes
0answers
15 views

how do you access a docker image from R studio?

Im trying touse a program called "r-peer" which is a program with ready made ability to plug in to R. It looks for hidden signal in data and creates covariates that capture this signal. ...
0
votes
1answer
17 views

Docker Swarm set which service goes to which machine

Docker Swarm set which service goes to which machine. Is there any way to set which service or service replicas goes to which worker machine ?
1
vote
0answers
19 views

calling shell commands on host from container

I've created a daemonset which adds a systemd unit and timer file to every host in the cluster. apiVersion: apps/v1 kind: DaemonSet metadata: name: logclean-updater spec: selector: matchLabels:...
1
vote
0answers
45 views

Building docker image of nuxt application using github actions fails (heap memory size exceeded)

I am trying to setup Github Actions workflow to automatically build and push docker image of my nuxt app, When the workflow finishes and I pull the image and run it, the web application doesn't load ...

1
2 3 4 5
20