145 questions
0
votes
1
answer
26
views
Is it possible to use variables in environment.yaml?
I have successfully removed sensitive values from my docker-compose.yaml using .env and secrets. But the container I'm running (https://github.com/Sync-in/server) also exposes the secrets in ...
0
votes
0
answers
94
views
Docker secrets in docker compose creates secret but empty
I have two containers - one is database and second my app.
Each container has attached secret.
After running docker compose, secrets for database container is successfully created but for app ...
0
votes
0
answers
93
views
Why does the nextgenhealthcare/connect image lack permission to access /run/secrets/mirth_properties
I am a rookie at Mirth and Docker.
I am running several services in a docker composition. I am trying to move passwords, keys and other sensitive items to docker secrets. The transition worked for ...
0
votes
0
answers
204
views
Unable to Pass Secrets for Docker Image Build in GitHub Actions
I'm having trouble passing a secret to build a Docker image through GitHub Actions. Even when I set the variable containing the secret as an environment variable, it seems like the secret is not being ...
0
votes
1
answer
629
views
Using Tokens from an Azure Container Registry as pull-secrets in Redhat Openshift
I don't seem to be able to generate a usable secret with Tokens in ACR. The method outlined here:
https://learn.microsoft.com/en-us/azure/openshift/howto-use-acr-with-aro
only mentions the Access keys ...
0
votes
0
answers
254
views
Docker Secrets do not work with postgres container
I have this docker compose file
services:
trader:
build: .
secrets:
- db_name_env
- db_password_env
- db_user_env
- app_env
environment:
APP_ENV_FILE: /run/...
2
votes
1
answer
3k
views
How to pass secret via dockerfile mount?
I am unable to run dockerbuild to mount a secret to pass to the container.
This is an example public repo to show the problem in github:
https://github.com/inspiraller/docker-node-get-secrets
...
4
votes
2
answers
2k
views
How to use docker compose secrets with a non-root user when a file is required
Situation
The current (07/2024) docker compose documentation states (falsely) that there is a long-syntax when using 'docker secrets' that can defines the name, uid, gid and mode of the mounted file
...
0
votes
1
answer
170
views
Setting environment inside a docker container from secrets
In a docker swarm, I need to setup an environment variable to the value of a docker secret.
I followed the answer here , but it does not work for me.
To try various options, I created a secret called ...
1
vote
1
answer
568
views
How to use secrets in DockerFile when building a Windows container?
I need to pass some secrets to a docker file to build my Windows container image.
I learned how not do do it but not how to do it properly. For example, it's unsecure to pass the secret via BUILD-ARG ...
1
vote
2
answers
399
views
I can't get user recognized using Docker secrets with Docker Compose and Postgres
I'm running the command:
docker exec -it db psql --user $(< postgres_user.txt)
and I'm getting the error:
/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "my_postgres_user&...
0
votes
1
answer
423
views
Dokcer build image --secret in Jenkins Pipeline
Here is my dockerfile
FROM node:20-alpine3.18
WORKDIR /app
COPY package*.json .npmrc ./
RUN --mount=type=secret,id=npmrc \
NPM_TOKEN=$(cat /run/secrets/npmrc) \
npm ci --production
COPY . .
...
1
vote
3
answers
3k
views
Secrets in Compose: Environment variable has file path as value instead of its content
I'm trying to use Secrets with Docker Compose
Here is my Docker Compose (only the relevant parts):
version: "3.8"
services:
My-Service:
build:
context: ./..
dockerfile: ./...
0
votes
0
answers
411
views
Docker build secrets in CodePipeline stages in CDK
I am using a private Github repo in my CodePipeline build, as our Docker container involves using poetry install to pull dependencies during the creation of the image that gets uploaded to ECR.
I am ...
0
votes
0
answers
41
views
Docker swarm inconsistency
my swam is inconsistent each time I create something like Networks, Secrets it says that some of us are already exist when it is not the case, I was in swarm that I left for this reason and loose all ...