Managing Applications and Infrastructure with Terraform-Deploying Infrastructure with Terraform-(1)Terraform Basics and a Docker Deployment-(1)Workstation Setup

2018年10月04日


Managing Applications and Infrastructure with Terraform - Deploying Infrastructure with Terraform
1. Terraform Basics and a Docker Deployment
1. Workstation Setup

This series of blog posts uses a combination of AWS EC2 with Ubuntu 18 as the test server.
For a brief guidance on how to install Terraform, refer to my post: How to install Terraform.

Docker
Get Docker CE for Ubuntu
http://docs.docker.com/install/linux/docker-ce/ubuntu

Updates the package lists for upgrades for packages that need upgrading, as well as new packages that have just come to the repositories.
/home/ubuntu# apt-get update

/home/ubuntu# apt-get install \
> apt-transport-https \
> ca-certificates \
> curl \
> software-properties-common
For copy and paste:

apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common

/home/ubuntu# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK

/home/ubuntu# add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
> $(lsb_release -cs) \
> stable"
For copy and paste:
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

Make sure Docker is up-to-date.
/home/ubuntu# apt-get update

/home/ubuntu# apt-get install docker-ce

/home/ubuntu# docker --version
Docker version 19.03.13, build 4484c46d9d

Category: orchestration Tags: public

Upvote


Downvote