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 :-