How to invoke a Docker secret key in c console application I want a sample code for it

0 votes
Actually I want hide a salt key from code so , I going for Docker secret tool, So I have install the Docker Desktop for window , created a key, so I want to access it in C# console application.

So Please provide me the solution as soon as possible.
Mar 20, 2020 in Docker by anonymous
• 120 points
1,146 views
Are you created the key inside your docker container and now you want to access it in C#? And is your C# application running in the same container?
Yes, I have created the key inside the docker container, and I want to access it in c#, but my application is not running in same container.
So, if you are in the same network than just check your security groups and firewall. If your containers are running in different network, for that you can use host or overlay network. Also try to ping containers from your base machine.
Both are running in same network, but a want a piece of code through which I can access it in my application.

Can tell me how to access it.
I don't know how can we access using code running in different container. But if you enabled SSH in your container, you can use SCP command to transfer your key and can use.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Docker

0 votes
1 answer

How to save a Dynamic port in Docker for Windows?

The mapped ports can be accessed via ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,700 points
858 views
+1 vote
0 answers

How can I map a docker location to my Jenkins workspace so that I can use the files in my Jenkins

Hey guys, I was trying to execute few ...READ MORE

Feb 25, 2020 in Docker by dineshkumar
• 130 points
4,936 views
0 votes
1 answer

How to create a secret in docker?

Hi@akhtar, In Docker, a secret is any blob ...READ MORE

answered Aug 17, 2020 in Docker by MD
• 95,460 points
717 views
0 votes
1 answer
0 votes
2 answers

How to edit file after I shell to a docker container?

You can even install it using a ...READ MORE

answered Apr 23, 2019 in Docker by Ashish
17,848 views
+1 vote
2 answers

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

answered Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
28,582 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,719 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP