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 in Docker by anonymous
• 120 points
266 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,550 points
122 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 in Docker by dineshkumar
• 130 points
1,456 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 in Docker by MD
• 57,060 points
59 views
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
10,394 views
0 votes
2 answers

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

Instead of using docker run you could ...READ MORE

answered Aug 13, 2019 in Docker by Sirajul
• 57,940 points
19,409 views
0 votes
1 answer

How to install telnet in Docker for Windows 10?

If you are trying to telnet in ...READ MORE

answered Aug 27, 2018 in Docker by Tyrion anex
• 8,550 points
1,308 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
• 57,660 points
780 views