sh 在Ubuntu 16.04 x64上安装Docker
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在Ubuntu 16.04 x64上安装Docker相关的知识,希望对你有一定的参考价值。
# Install Docker on Ubuntu 14.04.4 x64
# Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/
# No interactive for now.
export DEBIAN_FRONTEND=noninteractive
# Update your APT package index.
sudo apt-get -y update
# Update package information, ensure that APT works with the https method, and that CA certificates are installed.
sudo apt-get install apt-transport-https ca-certificates
# Add the new GPG key.
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# Add docker.list
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-xenial experimental" > /etc/apt/sources.list.d/docker.list
# Update your APT package index.
sudo apt-get -y update
# Purge the old repo if it exists.
sudo apt-get purge lxc-docker
# Verify that APT is pulling from the right repository.
sudo apt-cache policy docker-engine
# Install the recommended package.
sudo apt-get -y install linux-image-extra-$(uname -r)
# Ubuntu 14.04 or 12.04, apparmor is required.
sudo apt-get -y install apparmor
# Install Docker.
sudo apt-get -y install docker-engine
# Start the docker daemon.
sudo service docker start
# Validate docker version
docker -v
以上是关于sh 在Ubuntu 16.04 x64上安装Docker的主要内容,如果未能解决你的问题,请参考以下文章
sh 在ubuntu 16.04上安装saltstack
sh 在Ubuntu 16.04上安装Mongo 3.6
sh 在Ubuntu 16.04上安装Mongo 3.4
sh 在Ubuntu 16.04上安装Pulse Secure
sh 在Ubuntu 16.04上安装ChromeDriver和Selenium
sh 在Ubuntu 16.04上安装MariaDB服务器