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

[Unity at GDC] ECS for Small Things

Basics of Full-Stack development: A tool for creating complex application

Basics of Full-Stack development: A tool for creating complex application

Exploit Exercises — Protostar — Network Levels

2019 testing conferences part 1

App Analytics: A quick dive into Fabric Answers

The Art of Testing (in a shift left environment)

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

Multi-processing Image Evolution In Python

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

Docker for devs with hands-on| Part-5

Simple and fast Jenkins installation and setup locally on Windows with Docker

Basic Load Balancer using nginx container

Nginx High Availability and Load Balancing with KeepAlived