sh 安装Docker和Docker撰写Ubuntu 16.04
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 安装Docker和Docker撰写Ubuntu 16.04相关的知识,希望对你有一定的参考价值。
#! /bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt -y update
sudo apt install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt -y update
sudo apt purge lxc-docker
sudo apt-cache policy docker-engine
sudo apt -y install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt -y install apparmor
sudo apt -y install docker-engine
sudo service docker start
curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" > docker-compose
sudo mv docker-compose /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
以上是关于sh 安装Docker和Docker撰写Ubuntu 16.04的主要内容,如果未能解决你的问题,请参考以下文章
sh 使用自定义撰写和撰写覆盖文件构建docker
sh Docker撰写常见
sh Docker撰写更新程序Bash脚本
docker ubunt镜像中文乱码,文件名问号解决
ubuntu安装dockers过程:
sh 安装Docker和Docker Compose