docker-secrets Questions
6
Solved
I'm using secrets to manage username, password, and dbname with a Docker stack using Postgres as a DB. I now want to use the healthcheck feature that Docker provides.
docker-compose.yml
x-db-secret...
Grenoble asked 2/12, 2020 at 20:25
3
Assuming the latest Docker with BuildKit enabled, the documentation suggests that the --secret option has file and env types. I want to use the env type like this:
MYSECRET=thepassword
docker build...
Jigsaw asked 8/3, 2023 at 2:18
2
I am trying to compose a stack using secrets
for development, i use local files in docker/secrets/FILE_NAME
I had this working in windows 10, but I'm struggling to get it to work under win7 toolbox...
Weitman asked 16/11, 2017 at 9:39
9
Solved
Version 3.1 of the docker-compose.yml specification introduces support for secrets.
I tried this:
version: '3.1'
services:
a:
image: tutum/hello-world
secret:
password: the_password
b:
...
Sleeping asked 9/2, 2017 at 14:42
3
Context
Our current build system builds docker images inside of a docker container (Docker in Docker). Many of our docker builds need credentials to be able to pull from private artifact repositori...
Matlock asked 14/2, 2023 at 0:30
3
I have a docker container run with a non root user for better security, but it seems it can't access the secrets I'm sharing with it:
Importing account from "/run/secrets/authority.priv.json" fail...
Oreopithecus asked 20/11, 2018 at 3:47
6
Solved
I was trying to set the password from secrets but it wasn't picking it up.
Docker Server verions is 17.06.2-ce. I used the below command to set the secret:
echo "abcd" | docker secret create pass...
Buckie asked 4/1, 2018 at 12:1
4
Solved
How do you inject Docker secrets (files/data from /run/secrets) into the application.properties files? Is it safe to use environment variables?
Grieco asked 17/11, 2021 at 15:58
2
Currently I have the following in a datasource.properties file to connect to the datasource locally...
//datasource.properties
spring.datasource.password=${DB_PASSWORD}
This worked great for loc...
Adcock asked 3/10, 2018 at 15:16
2
From what I understand, Docker secrets and mounts (bind and volume) are all secure ways of managing secrets within a Docker container. I am wondering whether secrets has any security advantages?
I ...
Ambiguity asked 10/2, 2022 at 3:26
0
I have a Dockerfile that uses secrets and I can successfully build the image using docker build. However, when I try to build the same image using docker-compose build I get the error:
ERROR: Docke...
Semantics asked 7/1, 2022 at 1:44
3
I need create a MariaDB docker container, but need set the root password, but the password is set using a argument from the command line, it is very dangerous for the storage in the .bash_history.
...
Allelomorph asked 5/7, 2020 at 6:15
2
I put the docker in swarm mode and did the following
echo "'admin'" | docker secret create password -
docker service create \
--network="host" \
--secret source=password,targe...
Ulpian asked 25/9, 2018 at 7:0
5
Solved
Is it possible to execute commands on a docker swarm cluster hosted in cloud from my local mac? If yes, how?
I want to execute command such as following on docker swarm from my local:
docker crea...
Roux asked 18/5, 2017 at 19:40
2
Solved
I read about docker swarm secrets and did also some testing.
As far as I understood the secrets can replace sensitive environment variables provided in a docker-compose.yml file (e.g. database pass...
Honewort asked 7/1, 2018 at 20:27
0
I want to setup gcloud sdk within a docker build in a github action. Therefore i need to pass a service-account.json to the dockerfile.
I know i can pass build arguments to the dockerfile and of co...
Compare asked 27/5, 2021 at 6:40
1
Solved
I’m packaging a Python app for use within a Kubernetes cluster. In the code base this method exists :
def get_pymongo_client(self):
username = test;
password = 'test';
url = ‘test
conn_str = &...
Poulos asked 1/4, 2021 at 14:38
1
I want to dockerize my spring cloud config server application. I am creating a docker secret git-repo-pass to store the github account password. I am setting the environment SPRING_CLOUD_CONFIG_SER...
Inhospitable asked 12/11, 2020 at 20:16
1
Solved
Is there a way to set a kubernetes secret key name when using --from-file other than the filename?
I have a bunch of different configuration files that I use as secrets.json within my containers. ...
Stedman asked 30/4, 2020 at 18:9
1
I am running a spring boot app on a docker swarm stack and would would like to use docker secrets for token secrets, api keys, etc... It was no problem to create the secrets and make them available...
Sykes asked 26/12, 2019 at 21:10
2
I've been spending the last week or so attempting to learn docker and all the things it can do, however one thing I'm struggling to get my head around is the best practice on how to manage secrets,...
Senescent asked 22/3, 2018 at 19:54
2
Solved
I am playing around with a single container docker image. I would like to store my db password as a secret without using compose (having probs with that and Gradle for now). I thought I could still...
Iggie asked 2/10, 2018 at 0:48
1
Solved
I don't want to use docker secrets with swarm and I discovered that it's possible to do that.
Basically docker just mounts /run/secrets inside docker container, but when I enter the newly built doc...
Sparing asked 12/12, 2018 at 20:53
3
docker-compose --version
docker-compose version 1.11.1, build 7c5d5e4
I have secret 'my_secret_data' added to my swarm cluster:
The start of my compose file looks like:
version: "3.1"
secrets:
...
Gibby asked 15/2, 2017 at 15:56
2
Solved
Just for fun, I'm designing a few web applications using a microservices architecture. I'm trying to determine the best way to do configuration management, and I'm worried that my approach for conf...
Rattle asked 22/9, 2017 at 3:13
1 Next >
© 2022 - 2024 — McMap. All rights reserved.