Setting up Vault inside Docker

Step #1.) Firstly, download the below docker-image of ‘UbuntuWithAWS’ to our local machine :-

docker image pull adityagoel123/ubuwithawsdockimage

Step #2.) Next, let’s see whether this image is reflecting under our docker images :-

docker images

Step #3.) Next, let’s create a container from this image :

docker container run -itd adityagoel123/ubuwithawsdockimage

Step #4.) Next, let’s login inside this container :-

docker container exec -it 028cce033ce7 bash

Step #5.) Next, let’s first update the repositories :-

sudo apt update

Step #6.) Next, let’s add the HashiCorp GPG key :-

curl -fksSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -

Note that, we are basically using the option “-k”, in order to connect in an unsecured way to the server.

Step #7.) Next, let’s first update the repositories :-

sudo apt install software-properties-common

Step #8.) Next, lets add the official HashiCorp Linux repository.

sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"

Step #9.) Last step is to Update and install.

sudo apt-get update && sudo apt-get install vault

Step #10.) Lets verify the installation :-

vault --version

That’s all in this section. If you liked reading this blog, kindly do press on clap button multiple times, to indicate your appreciation. We would see you in next series.

References :-

--

--

--

Software Engineer for Big Data distributed systems

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Debug Flutter over WiFi

Coda on Coda — Tracking Customer Feedback

Testing file upload with Swagger in ASP.Net core

How to protect your Unity game from being hacked?

What is Style in Coding and Programming Languages?

React: Day 17

React: Day 17

Participating in GCI 2019

GCI 19 site picture

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
aditya goel

aditya goel

Software Engineer for Big Data distributed systems

More from Medium

How to monitor Redis with Prometheus and Grafana | Docker

A complete Prometheus based email monitoring system using docker compose

Getting started with Kubernetes

CI/CD of microservices architecture with GitLab — Pt. 2