Questions tagged [docker]
For questions about building and running Docker containers. DOCKER QUESTIONS MUST BE SPECIFICALLY RELATED TO SOFTWARE DEVELOPMENT. Suitable topics include Dockerfiles, Docker Compose, and architecture. As a rule of thumb, if your question is about something happening inside the container, it's probably on-topic here; if it's outside the container, it is probably off-topic.
docker
138,849
questions
0
votes
0
answers
9
views
Custom Github Action - Access Github Secrets / environment variable
I'm creating a custom Github Action. I'd like to share this action with others. The issue I'm facing is that within the action code I need to use an API.
I'd like to be able to have my code in the ...
0
votes
1
answer
17
views
Starting process in docker separate from entrypoint
I am using a docker image whose base image is bookworm-slim. I think the image doesn't have a way to queue up startup services (perhaps I have to install that as well?), but I want to run CRON ...
0
votes
0
answers
20
views
How can i know why it's not showing the database in pgadmin?
I totally sure that in docker postgres is working well because when i make this query
irb(main):001> User.all
i am getting this result:
User Load (4.8ms) SELECT "users".* FROM "...
0
votes
0
answers
10
views
Azure Machine Learning Studio integration with rocker Rstudio: Git tab is not appearing for an Rproject set up with GitHub repository
I am running and Rproject with GitHub version control in Rstudio within a compute instance in Azure Machine Learning Studio. The Rproject was previously set up outside of Azure MLS and is running ...
0
votes
0
answers
7
views
does vault agent generate approle secret id after it expire?
I inject the role ID and secret ID of Hashicorp vault using Jenkins during the build stage of my app docker image.
Then, the vault agent read the role ID and secret ID connect to vault and deliver ...
-1
votes
0
answers
19
views
Error when starting a minecraft server in a container in docker [closed]
I was trying to start my minecraft server, hosted on the free plan of nether hosting, i put plugins etc. Then i go to console and i try to start my server
[NY-01-F Daemon]: Checking server disk space ...
0
votes
0
answers
15
views
My laravel project running with docker in Ubuntu does not see images [closed]
I am developing a laravel project using docker and I have a home/user/projects/myProject project in ubuntu to make this project faster. The problem is that my images are not showing up in "...
0
votes
0
answers
26
views
Why is the .git Folder Not Copied and How Can I Fix the Error in My Dockerfile?
I created a Dockerfile to build my Angular application with Nx:
FROM node:alpine3.19 AS builder
WORKDIR /app
RUN apk update && apk add git
COPY .git .git
COPY yarn.lock package.json .npmrc ...
0
votes
1
answer
17
views
Authentication failed while connecting to docker-compose mongodb via springboot application
docker-compose.yml
version: '4'
services:
mongodb:
image: mongo:7.0.5
container_name: mongodb
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ...
0
votes
1
answer
11
views
Piping tar archive to host fails on docker run but works on docker exec
I'm trying to get some libraries out of a Docker image, since I temporarily need it in another environment.
Since I need symlinks to persist through this, I'm trying to tar the directory and pipe it ...
0
votes
1
answer
19
views
Invalid credentials for docker postgress image
I am creating two databases: product, and test one:
version: '3.8'
services:
db:
image: postgres:13-alpine
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
...
0
votes
0
answers
18
views
Best way to set folder permissions in docker container after every restart?
My cluster gets torn down at the end of every day. It looks like the base mounted folder for my apllication (/ni) has its permissions updated for an owner of local.adm. Instead, I need this to be my-...
0
votes
0
answers
18
views
Azure Pipeline timeout with testcontainers
I have a similar issue as this: Testcontainers: Azure pipeline test stage reach timeout of 1hour
I would have commented there but I can't comment because I don't have 50 reputation.
It's the same case,...
0
votes
0
answers
18
views
I can't open server in 0.0.0.0 instead it is working in 127.0.0.1 in while using Docker , Django and Postgres [duplicate]
I am a newbie to this.
settings.py file is:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD':...
1
vote
1
answer
23
views
mvn verify doesnt start docker-compose
I want to start docker-compose upon integration tests e.g mvn verify command.
I am using:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId&...
1
vote
0
answers
38
views
Unable to access server running in k8s pod from WSL host with docker-desktop installation
I'm running docker-desktop with WSL2.0 ubuntu on windows. I created a k8s deployment in the wsl ubuntu host. The deployment has one pod where I'm running a simple server program(runs forever, accepts ...
-2
votes
0
answers
11
views
Displaying host machine info with docker container
I have nextjs app and im using nodejs os to gather system info about totalram cpu etc. How i can make it work with docker cause if i run my app with docker compose on my app ui i see ram allocated to ...
0
votes
0
answers
26
views
Error response from daemon: error while creating mount source path '/var/www/todo/todo-app': mkdir /var/www: read-only file system
todo-app/docker-compose.yml
version: '3.8'
services:
laravel:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
env_file:
- .env
...
0
votes
0
answers
11
views
How to analize error and stacktrace in unmanaged code in net core docker container
I have floating bug that sometimes abort my net core 6 service in docker container.
Last logs that I see:
[2024-07-26 08:23:57.467 +00:00 INF] ...my logs
dotnet: malloc.c:2379: sysmalloc: Assertion `(...
0
votes
0
answers
11
views
Nestjs serverless in lambda size limit
I have an nest js api running locally then i have decided to deploy it on the aws lambda but there is a limit of 250mb unzipped
then i tried deploying using ecr with docker image container and webpack ...
0
votes
0
answers
11
views
Thingsboard sequential updates on docker - how do I specify the intermediate versions
I’m running Thingsboard CE 3.6.1 using docker on Ubuntu.
I’d like to upgrade to a more recent version. Previous questions have indicated that sequential upgrades are preferable (3.6.1 > 3.6.2 > ...
0
votes
0
answers
19
views
Content not from webpack is served from '/app' directory (Docker / Webpack)
I'm using Webpack configuration with docker.
Everything working well as development step. However this is not working for my preproduction and production step. The difference between these steps is ...
0
votes
0
answers
26
views
Unable to update Node.js in pre-built Docker container
I have a project that's inside a pre-built docker container which uses Node v14. I have been let know that the container was pulled like this a long time ago: docker pull node:20-alpine.. but not much ...
-1
votes
0
answers
18
views
Rust Actix-Web docker container not shows up logs
I am creating an API server using the Rust actix-web framework. I am creating and checking logs (using log4rs) in the local environment without any problems. After Dockerizing, Docker runs without a ...
0
votes
0
answers
30
views
how to test localhost API from docker container
I am a little new to docker and I trying to figure out how to use docker compose. So far I have only created a test API called "http://localhost:3000/test" which would just return a "...
0
votes
1
answer
34
views
Not possible to connect to redis server
I am running a .NET application inside a Docker container and trying to connect it to an Azure Redis Cache instance. While I can successfully connect to the Redis instance using redis-cli from within ...
0
votes
2
answers
29
views
Connecting to local mysql server from within a docker container [duplicate]
I'm running a go app locally (MacOS Sonoma) that connects to a local mysql server. This works fine when I build the app and run it from the command line. When I create a container and run it - all ...
0
votes
0
answers
23
views
Unable to use implicit IAM/role-based auth when using Boto3 inside Docker on EC2
I've run into a frustrating edge case that I'm now having to either introduce custom logic to work around or solve properly.
I'm running a Django application inside a Docker container on EC2. I'm ...
1
vote
0
answers
22
views
Laravel Sail MySQL Connection Refused - Docker Setup Issue
Description:
I am currently setting up a Laravel project using Docker and Laravel Sail. I am facing issues connecting to the MySQL service from the Laravel application. The error message indicates ...
0
votes
1
answer
24
views
How to automatically configure Docker config in Gitlab CI/CD variables?
I have some Docker components and I want to store the credentials (Docker config) in a project variable in the CI/CD settings.
In the CI/CD variables settings I can set the raw config text as a ...
0
votes
0
answers
11
views
Mount new volume on existing running container (From Terminal, no Scripting) [duplicate]
In windows like host SO, If I have an existing container "LAMP-Container" and I have created a new volume with this command:
docker volume create --driver local --opt type=none --opt device=...
0
votes
0
answers
9
views
Docker compose up failed to exceute when i run apache/airflow:2.6.0-python3.9 webserver
I want to implement streaming ingest data with apache airflow, postgres, kafka, spark and cassandra.
I get some error when i run my docker compose file, the webserver container is unhealthy and i don'...
0
votes
0
answers
12
views
ReadTimeoutError pypi.org on gitlab build
While gitlab build I get error on Dockerfile line
RUN pip install -r requirements.txt
16.71 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection ...
-1
votes
0
answers
9
views
Name Resolution between external browser and internal Docker Network [duplicate]
I have docker-compose file where i describe 4 containers and added them to created internal docker network, my frontend container tries to get data from my backend container using ajax, where i wrote ...
1
vote
0
answers
10
views
External mount for Solr schema.xml with docker
I'm using Solr with docker (used by a custom ecommerce website) I would like to be able, from a script, to update the schema (done by my website) and then reload the core via the Solr API.
However, I ...
-1
votes
0
answers
22
views
How to pass docker commands through Powershell
Everyday i have to restart docker containers everyday. Don't ask. So i want to make Powershell script that connects through SSH to server with docker and then restarts all containers. So right now my ...
0
votes
1
answer
26
views
How do you browse a GitLab CI build after it fails?
Situtaion
I push code to my repo on my self-hosted GitLab server.
It triggers my runner to run my CI job.
The CI job fails.
Now I want to go investigate the scene of the crime.
Question
How can I ...
0
votes
1
answer
15
views
See docker name of services in petitions inside the same docker network
so I have multiple services runing in the same docker network with flask
they are set like this:
version: '3'
services:
login:
build:
context: ./repo_login
dockerfile: Development....
0
votes
0
answers
25
views
Django debug toolbar is not displayed
I just installed debug toolbar for my django project like allways.
but I don't know why doesn't the debug toolbar display?!
and I have to add that I'm using docker and it's my first time that use ...
0
votes
1
answer
17
views
Docker Grafana - VPN to MSSQL not connecting [closed]
I have a grafana container running on my linux server. I am trying to get a connection from Grafana to my MSSQL server which is on another network but VPN connected.
From the linux server running ...
0
votes
0
answers
15
views
Jupyter Hub Docker How do I log into the image?
Trying to install JupyterHub with the following link:
https://jupyterhub.readthedocs.io/en/latest/tutorial/quickstart-docker.html
Can't seem to login tried following the steps of launching a bash ...
0
votes
0
answers
14
views
My ECS task mapped with portMapping = 9200 but the application end point is running only in port 8080
I am fairly new to AWS and docker.
What I have done is --
I have created a sample spring-boot get endpoint
Created a docker image from it and pushed the same to DockerHub
Created an ECS cluster and ...
0
votes
1
answer
30
views
Does not contain a static 'main' method suitable for an entry point when running docker build
Does not contain a static 'main' method suitable for an entry point
using CountryAPI.Models;
public class Program
{
public static void Main(string[] args)
{
var builder = ...
1
vote
0
answers
28
views
Clean / Purge data in docker desktop with command line
I am using docker desktop 4.29 enterprise version. I have noticed that there are few cached data that is getting increase after every run. This is getting cached in folder "C:\Users\...
0
votes
0
answers
15
views
Use .sh file to build image in docker compose
I have a docker compose file that works fine on my Windows/WSL environment. I am trying to deploy it to a Ubuntu server. I get the following error unable to prepare context: path "/home/dev/...
-2
votes
0
answers
16
views
New relic for tomcat based application [closed]
I have one application and i want to integrate new relic java agent into that application ,i successfully injected new relic jfr into java based applications but for tomcat based application which ...
-3
votes
1
answer
38
views
Pip cannot find recent versions of package when trying to install in Docker container
I am trying to run a Docker container in a Jupyter Notebook within AWS Sagemaker. The DockerFile is from a template that worked until I added one additional RUN command with some ML packages I wanted ...
0
votes
1
answer
25
views
Unable to add WAR-File from CURL to Wildfly Docker image
My goal was to build the WAR of my Spring Boot Application via CI, push the artifact, and retrieve that artifact in a Dockerfile to deploy it using a Wildfly Application Server docker image.
I assume ...
0
votes
0
answers
30
views
How to properly package a Node.js and React app stripping the container of all unneeded files?
I have a Node.js backend that serves up the React frontend (later I can do CDN probably) and for now, I plan on disallowing CORS so React must talk to my Node.js backend only. The prototype for this ...
0
votes
0
answers
8
views
How to install kerberos client in docker based on Ubuntu Focal image
I tried following docker command in docker file
RUN apt-get update && apt-get install -y krb5-user libpam-krb5
but it stuck expecting interaction from the use, even when i used -y switch.
12:...