Skip to content

Instantly share code, notes, and snippets.

@tiagob
tiagob / install-docker.md
Created September 15, 2020 02:14 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
2020/05/30 20:50:35 [INFO] Terraform version: 0.12.26
2020/05/30 20:50:35 [INFO] Go runtime version: go1.13.11
2020/05/30 20:50:35 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2020/05/30 20:50:35 [DEBUG] Attempting to open CLI config file: /Users/tiagobandeira/.terraformrc
2020/05/30 20:50:35 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/05/30 20:50:35 [INFO] CLI command args: []string{"apply"}
2020/05/30 20:50:35 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2020/05/30 20:50:35 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/05/30 20:50:35 [DEBUG] New state was assigned lineage "d24a6e9a-ab7e-b078-7545-aec2d8b0e5cf"
2020/05/30 20:50:35 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
import httplib
import urllib
def closure_js_api(_in, out, **kwargs):
# https://developers.google.com/closure/compiler/docs/api-tutorial1
# Define the parameters for the POST request and encode them in a
# URL-safe format.
params = urllib.urlencode([