Skip to content

Instantly share code, notes, and snippets.

@vochicong
Last active August 18, 2017 07:18
Show Gist options
  • Save vochicong/09e45d05aa4841179d20392539644df8 to your computer and use it in GitHub Desktop.
Save vochicong/09e45d05aa4841179d20392539644df8 to your computer and use it in GitHub Desktop.
Install Docker into Ubuntu 14.04 LTS

2017/08/07: Install Docker using the convenience scriptがうまく行った。従来の方法でやると何故かエラがでる。

Failed to fetch https://download.docker.com/linux/ubuntu/dists/trusty/InRelease  Unable to find expected entry 'table/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
# https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-convenience-script
# Always examine scripts downloaded from the internet before running them locally.
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo apt-get update
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual \
apt-transport-https ca-certificates curl software-properties-common \
python-pip
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
table"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo apt install -y python-pip
sudo pip install docker-compose
sudo usermod -aG docker `whoami`
# logout/relogin
docker run hello-world
curl -L https://github.com/kubernetes/kompose/releases/download/v1.0.0/kompose-linux-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/kompose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment