Deploying Docker images
Now that we have contained our Vault service inside a Docker container, we are going to do some useful things with it.
The first thing we are going to do is push this to the Docker Hub so that other people may spin up their own instances or even build new images based on it.
Deploying to Docker Hub
Head over to Docker Hub at https://hub.docker.com and create an account by clicking on the Log In link in the top-right-hand corner and then clicking on Create Account. Of course, if you already have an account, just log in.
Now in a terminal, you are going to authenticate with this account by running Docker's login
command:
docker login -u USERNAME -p PASSWORD https://index.docker.io/v1/
Tip
If you see an error such as WARNING: Error loading config, permission denied
, then try the command again with the sudo
command prefix. This goes for all of Docker commands from this point onwards, since we're using a secured configuration.
Ensure that you replace USERNAME
and PASSWORD
with...