Last active
July 14, 2020 06:52
-
-
Save michaelradionov/84879dc686e7f9e43bc38ecbbd879af4 to your computer and use it in GitHub Desktop.
Installation of Docker on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Repo | |
| apt-get update; | |
| apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common; | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -; | |
| apt-key fingerprint 0EBFCD88; | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable"; | |
| apt-get update; | |
| apt-get install -y docker-ce docker-ce-cli containerd.io; | |
| docker --version; | |
| echo "DOCKER INSTALLED!!!"; | |
| # Docker | |
| apt-get update; | |
| apt-get -y install docker-ce docker-ce-cli containerd.io; | |
| # Docker-Compose | |
| sudo curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose; | |
| sudo chmod +x /usr/local/bin/docker-compose; | |
| docker-compose --version; | |
| echo "DOCKER COMPOSE INSTALLED!!!" | |
| sudo echo 'vm.max_map_count=262144' >> /etc/sysctl.conf # for elasticsearch in docker. See https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html | |
| sudo sysctl -p # for elasticsearch in docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment