All Questions
Tagged with dockerfile or docker
155,430 questions
1
vote
0
answers
22
views
How to handle local network access pop up when running automated testing using Docker?
How can I handle local network access pop up in automated testing when running on Docker?
chromeOptions.addArguments("--disable-features=BlockInsecurePrivateNetworkRequests");
This command ...
-1
votes
0
answers
19
views
Spilo HA cluster with mTLS: BOOTSTRAP_POSTGRES_DATABASES not creating databases and SSL certs not used [closed]
I’m setting up a Spilo (Postgres HA) cluster inside Docker with mTLS for both Postgres and Etcd. I’m facing two issues:
Databases specified in BOOTSTRAP_POSTGRES_DATABASES are not created.
Postgres ...
-2
votes
0
answers
27
views
Apache Superset: Localhost refused to connect while embedding Superset through iframe [closed]
I am using version 6.0.0 in Docker Desktop and tried to embed a dashboard in a simple .html file through iframe. But it says
localhost refused to connect
whenever I am tying to execute the HTML file....
-2
votes
0
answers
29
views
Temporal is not running in Docker [closed]
Below is my Docker Compose script. However, Temporal only showing "Waiting for PostgreSQL to startup" when I execute docker compose up.
=> TEMPORAL_ADDRESS is not set, setting it to 172....
0
votes
0
answers
30
views
gcc:internal compiler error:Segmentation fault signal terminated programcc1
I am trying to build OpenSSL from source inside a Docker container based on an Alpine Linux toolchain image (ghcr.io/nokia/corteca-toolchain). The target architecture is AArch64, and this environment ...
-1
votes
0
answers
60
views
How do I help my Docker container find libgtk-4.so.1? [closed]
I'm trying to serve my application via Docker, but it's having trouble finding a GTK shared object file.
Create Dockerfile (see below) which uses the latest Fedora image and calls for docker to run ...
1
vote
1
answer
58
views
Neo4j GraphAcademy Docker Installlation Error on Windows: ModuleNotFoundError: No module named neo4j
I'm trying to get a container running Python to connect to my Neo4j container in Docker.
I'm following the steps in the Neo4j GraphAcademy Python Installation tutorial (https://neo4j.com/docs/python-...
-3
votes
0
answers
43
views
Sharing folder with n8n run in container manager/docker on Synology [closed]
Is there a reliable way how to share a Synology folder with a docker container running on the same device? Does the specific image matter in this?
I have created a new user for this service and gave ...
-4
votes
0
answers
31
views
How to access env values defined in a docker container [duplicate]
Introduction
I want to reference the env values defined inside docker container. I want them to be able to them in bash CLI and in bash scripts.
Problem
However, referencing them like $MY_ENV, ${...
-1
votes
1
answer
78
views
Failed Docker build seems to have left a docker image with no name or ID. Only " i Info → U In Use" [closed]
I am seeing the following after running docker image ls
I have tried docker system prune -a as well as,
docker container rm and docker image rm
and I am still seeing the image. I have even removed ...
-2
votes
0
answers
57
views
Echo , Golang , Postgresql , Docker Different Results [closed]
I just start learning Golang and I'm currently using Echo.
I have an endpoint :
- base/api/wallet/cardnumber -> get card details
and I execute "go run .\main.go" and the API provide ...
Best practices
0
votes
2
replies
35
views
Reduce 'Prisma 7' final bundle size in Docker
In my NodeJS project, we have integrated Prisma(v7.3.0) ORM for MySQL database task(previously sequelize). After all the setup is done, we observed prisma occupies very huge size in Docker image ...
0
votes
0
answers
34
views
Docker fails to pull image from GHCR on AWS EC2: failed to resolve reference / timeout on https://ghcr.io/v2/ [closed]
I’m running Docker on a Linux EC2 instance and Docker is unable to pull images from GitHub Container Registry (GHCR).
When pulling the image, I get the following error:
Error failed to resolve ...
0
votes
1
answer
39
views
Is `skopeo copy` of an image the same as a docker tag in regards of layer caching?
Within a gitlab pipeline, I use skopeo and do:
skopeo copy \
--src-tls-verify=false \
--dest-tls-verify=false
--src-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
--dest-creds $...
0
votes
0
answers
53
views
Rootless Docker cannot be installed just with docker-ce-rootless-extras [closed]
I'm installing Docker in the rootless mode from the scratch. I don't have any docker package installed but docker-ce-rootless-extras. I run dockerd-rootless-setuptool.sh install and got an error
/usr/...
0
votes
2
answers
89
views
Can you execute commands using docker hardened images?
We're investigating switching to using Docker hardened images.
But for simple node app:
FROM dhi.io/node:25.5.0-alpine3.23
RUN npm install
ENTRYPOINT npm run start
It doesn't work:
runc run failed:...
-4
votes
0
answers
47
views
podman vs docker when running systemd inside docker container [closed]
To test my setup and configuration of a bunch of metal servers I wanted to test the setup in isolation with docker containers.
This is my Dockerfile
FROM docker.io/library/debian:11
ARG ...
-2
votes
0
answers
40
views
Getting the repo image digest using only Kubernetes [closed]
I am looking to obtain the repository digest of an image using only Kubernetes. My use case is that I am running my software as a Docker image, and my software is checking for all pods that are ...
-3
votes
0
answers
87
views
Is there an equivalent to “Docker context ls” with the Moby/Docker API in Go? [closed]
To learn Go, I would like to create a personal application for managing Docker objects. I have two Docker contexts on my machine. When starting the program, I would like to be able to choose which ...
0
votes
0
answers
105
views
I’m deploying MongoDB using the Dockerfile below and experiencing critical corruption issues
I’m deploying MongoDB using the Dockerfile below and experiencing critical corruption issues.
Environment:
Inserting approximately 1 million documents per day
Server crashes every 3 days with ...
Advice
0
votes
2
replies
19
views
“Docker context ls” equivalent with the Moby API
I searched for “[moby] context list” or “[moby] context” without success.
If possible, how can I obtain the equivalent result of “docker context ls” with the Moby API?
Any solutions? Any ideas? Any ...
-1
votes
0
answers
28
views
configure nginx in rails8.1 application with thruster [closed]
I am working to update my Rails 7 application to Rails8.1, i have done all the changes in code and it works, now on the deployment part, I am using gem kamal2
So, the configuration is browser -> ...
0
votes
0
answers
22
views
Dagster DockerRunLauncher fails with ConnectionRefusedError on /var/run/docker.sock after host Docker daemon restart – stale bind mount in container
I'm running Dagster (with DockerRunLauncher + QueuedRunCoordinator) in Docker Compose on an Ubuntu VM. Everything works fine after a full rebuild/restart, but after ~1 week the daemon starts logging:
...
-4
votes
0
answers
77
views
How can I run the MADDPG example from AgileRL? [closed]
How I can run the MADDPG example on Fedora 43? I get this C++ error when using the multi_agent_ale.py dependency (using pip) because it wants to use C++17 (I think because there is a std::int8_t error ...
Tooling
0
votes
5
replies
34
views
How can I make a Docker container running on Windows (WSL2) accessible from a Raspberry Pi on the same network?
I was running a WASP node (for IOTA) inside Docker on Windows using WSL2. I wanted to access its JSON-RPC API from a Raspberry Pi on the same local network. However, despite exposing ports in Docker, ...
0
votes
0
answers
106
views
How to read/write in minio using spark?
I've build a spark and minio docker container with the below config:
services:
spark:
build: .
command: sleep infinity
container_name: spark
volumes:
- ./spark_scripts:/opt/...
5
votes
0
answers
88
views
Docker load fails with wrong diff id calculated on extraction for large CUDA/PyTorch image (Ubuntu 22.04 + CUDA 12.8 + PyTorch 2.8)
About
I am trying to create a Docker image with the same Dockerfile with Python 3.10, CUDA 12.8, and PyTorch 2.8 that is portable between two machines:
Local Machine: NVIDIA RTX 5070 (Blackwell ...
-4
votes
0
answers
49
views
Docker missing context [duplicate]
when trying to run docker compose, docker misses context and actually copying other files
compose:
bot:
build:
context: .
target: bot
restart: unless-stopped
depends_on:
...
Best practices
0
votes
2
replies
16
views
Using Make with multiple configurations
I have decided to keep all the automation for my projects in Makefile and create a sub-directory structure environments with names of all the environments and setups I have. Sometimes I need to pickup ...
-1
votes
0
answers
38
views
Using .NET 8 as base image from Docker has many 0 length system files
I have a Dockerfile that uses .NET 8 as a base image and builds a C++ application on it.
When it tries to build, I get this error:
Failed to load /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.23/...
0
votes
0
answers
28
views
Docker run throws error executable file not found in $PATH when arguments are passed [duplicate]
I Have a python program which I containerized. The script accepts command line arguments. Arguments are correctly processed when running the script directly from the IDE. But if I run the container ...
2
votes
1
answer
120
views
RuntimeError: Failed to import transformers ('NoneType' object has no attribute 'split') with Python 3.11, TensorFlow 2.15 & Docker
I am encountering a critical RuntimeError during the startup of my Dockerized FastAPI application. The error occurs specifically when sentence_transformers attempts to import transformers.models.auto....
1
vote
1
answer
60
views
Cannot seem to call poetry installed packages in Docker image (redhat)
I'll preface by saying I'm not familiar at all with any Redhat specific differences, but I'm running into what seems like it should be a simple issue. I have a Redhat 8 image and the following lines ...
-4
votes
0
answers
50
views
Testcontainers fails on macOS Tahoe with "client version 1.32 is too old" despite modern Docker [duplicate]
A Java Spring Boot project using Testcontainers (JUnit 5, Maven) suddenly started failing integration tests on macOS Tahoe with errors like:
ExceptionInInitializerError
ContainerFetchException: Can'...
0
votes
1
answer
82
views
Cannot attach to the container with name/id <container name>, it no longer exists
PC Setup:
Windows 11 + WSL2
Docker Engine installed in WSL2 (no Docker Desktop installed on Windows)
VSCode (occured with various versions of VSCode and extensions)
Extension: Dev Containers
...
0
votes
1
answer
52
views
Problem trying to conect a Postgres DB with Spring Boot via Docker
I already stopped and removed all the previous containers and volumes, but it is not working because of an authentication problem even though both passwords in the Docker and properties file are the ...
0
votes
1
answer
57
views
Deploying SpringBoot backend on server. URL/URI not hierarchical due to jar file
I'm working on a project for school. It's almost finished I just need to deploy the application to a server. I am doing this step-by-step.
I have built the application on the server using the command ...
-1
votes
0
answers
71
views
Composer install fails in Docker: curl (35) OpenSSL SSL_connect SSL_ERROR_SYSCALL when fetching repo.openclassify.com/packages.json
I’m trying to run a Laravel project inside Docker (PHP 8.2 container).
The project uses a private Composer repository (https://repo.openclassify.com) defined in composer.json.
Problem:
composer ...
2
votes
1
answer
68
views
k8 cluster ASP.NET Core 8 error exec /usr/bin/dotnet: exec format error
I have notification service that I have in a docker image and am trying to push to a aks cluster.
locally everything works with docker desktop and k8 cluster thru docker desktop. I am running windows ...
0
votes
1
answer
107
views
sqlcmd command not found in SQL Server 2022 Docker container
I'm running SQL Server 2022 in Docker:
bash
docker run -d -p 1433:1433 --name sqlserver -e "SA_PASSWORD=youdontneedtoknow" -e "ACCEPT_EULA=Y" mcr.microsoft.com/mssql/server:2022-...
2
votes
1
answer
73
views
Hyperledger Fabric deployCC fails with "broken pipe" error on Docker Desktop 4.56.0
While trying to deploy chaincode (Go) on the Hyperledger Fabric test-network using ./network.sh deployCC, the process fails during the build phase.
Error: chaincode install failed with status: 500 - ...
0
votes
0
answers
39
views
How to restart CKAN processes (but not jobs/worker) inside running ckan-docker dev container?
I’m developing CKAN extensions using the official ckan-docker setup with the dev images and need to restart CKAN after various updates in my extension.
Inside my main ckan container (run via ...
0
votes
1
answer
182
views
ERROR: failed to build: failed to solve: openjdk:17: failed to resolve source metadata for docker.io/library/openjdk:17-oracle: [duplicate]
I have created a java appliction, I wish to upload the appliaction as a docker image.
The Problem is it looks like Java 17 is not supported, or no longer supported.
I have used
FROM openjdk:17
I got ...
Best practices
0
votes
2
replies
27
views
Best way to host multiple EMQX instances per server
I am currently using EMQX as a chat message delivery system paired with a laravel backend for flutter mobile apps. Each client should have his/her own EMQX to provide more security + accurate ...
1
vote
0
answers
72
views
Newman API tests failing with Cloudflare Access headers
I'm running Newman API tests in a GitHub Actions workflow that needs to pass Cloudflare Access headers. The workflow is failing even though I believe I've implemented everything
Postman Collection has ...
1
vote
1
answer
211
views
Error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory
I am trying to set up a docker container using the nvidia container toolkit on a remote server, so that I can run cuda programs developed with the Futhark Programming Language - however, the issue ...
3
votes
0
answers
64
views
Cannot attach VS Code to Spark container: Permission denied creating .vscode-server in /nonexistent
I'm getting what I feel should be a super simple error, but I'm having a tough time figuring out what I'm doing wrong. I want to open a running container in VS Code, but I keep getting a permission ...
-3
votes
0
answers
70
views
Jenkins removes Dockerfile ENV variables after build docker image
I want to build a custom image from liquibase/liquibase:5.0.1. The procedure includes adding changesets, a changelog file, and installing the ojdbc11 driver.
FROM liquibase/liquibase:5.0.1
USER root
...
Best practices
1
vote
0
replies
24
views
Best practice to build flutter docker image on mac non-x86 for use on x86-64 machine
We have a flutter docker image (base image is debian for build and nginx for deployment)
The resulting container has to run on an x86-64 machine (uname -m is x86_64)
If we build the image on an x86-64 ...
0
votes
0
answers
46
views
Strapi CORS not working behind Nginx Proxy Manager (Docker), headers always empty
I'm running a Strapi backend behind Nginx Proxy Manager (Docker) and trying to enable CORS.
Strapi version: latest
Nginx Proxy Manager: latest Docker image
I want to allow requests from my frontend ...