sh 在Ubuntu 18 LTS中安装Docker Engine和Docker Compose - wget -O - https://bit.ly/2B3eXLc |庆典
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在Ubuntu 18 LTS中安装Docker Engine和Docker Compose - wget -O - https://bit.ly/2B3eXLc |庆典相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
#DOCKER_VERSION=18.06.1~ce~3-0~ubuntu
COMPOSE_VERSION=1.23.2
# TOOLS
sudo apt-get -y install curl wget make jq git make tree htop conntrack bash-completion build-essential python-pip python-virtualenv rsync unzip apache2-utils
# DOCKER ENGINE
sudo groupadd -f docker
sudo usermod -aG docker $(whoami)
sudo apt-get -y remove docker docker-engine docker.io
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
# sudo apt-cache madison docker-ce | awk '{print $3}'
# or sudo apt-cache policy docker-ce
sudo apt-get -y install docker-ce
#sudo apt-get -y install docker-ce=$DOCKER_VERSION
sudo systemctl enable docker
sudo systemctl start docker
# echo manual | sudo tee /etc/init/docker.override
# sudo update-rc.d docker defaults
# DOCKER COMPOSE
sudo bash -c "curl -L https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
sudo chmod +x /usr/local/bin/docker-compose
sudo bash -c "curl -L https://raw.githubusercontent.com/docker/compose/$COMPOSE_VERSION/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose"
以上是关于sh 在Ubuntu 18 LTS中安装Docker Engine和Docker Compose - wget -O - https://bit.ly/2B3eXLc |庆典的主要内容,如果未能解决你的问题,请参考以下文章
sh 如何在Ubuntu(18.04)中安装和设置mongodb?
在VMWare Workstation中安装Ubuntu
如何在ubuntu系统中安装搜狗输入法
在 python 3.8 Ubuntu 20.04 LTS 中安装 RDKit 的问题
如何在 Ubuntu 14.04 LTS 中安装 Greenplum 数据库?
ubuntu18.04中安装iNode