ubuntu docker的安装和使用
Docker CE for Ubuntu
Docker CE for Ubuntu is the best way to install the Docker platform on Ubuntu Linux environments. Simplify provisioning and setup of Docker and accelerate your time to value in building and deploying container based applications.
Docker for Ubuntu is also available as an Enterprise Edition subscription with software, support and certification that can be installed on bare metal or cloud infrastructure.
Features and Benefits
- Easy installation and setup of an optimized Docker environment for Ubuntu on bare metal servers and VMs.
- Latest Docker platform version with built in orchestration (clustering and scheduling), runtime security, container networking and volumes.
- Available as a free download with a monthly Edge or quarterly Stable release with community support.
- Also available for ARM 32 based platforms
Prerequisites
To install Docker CE, you need the 64-bit version of one of these Ubuntu versions:
- Yakkety 16.10
- Xenial 16.04
- Trusty 14.04
1. Set up the repository
Set up the Docker CE repository on Ubuntu. The lsb_release -cs
sub-command prints the name of your Ubuntu version, like xenial
or trusty
.
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl
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) \
stable"
sudo apt-get update
2. Get Docker CE
Install the latest version of Docker CE on Ubuntu:
sudo apt-get -y install docker-ce
3. Test your Docker CE installation
Test your installation:
sudo docker run hello-world
- # 检查运行
ps axf | grep docker
13845 ? Ssl 0:00 /usr/bin/docker -d
sudo docker version
启动和停止docker服务
- sudo service docker start
- sudo service docker stop
- sudo service docker restart
相关文章
- 使用Docker(k8s)安装Kafka并使用宿主机连接
- docker安装DockerCompose
- docker安装jenkins
- yum直接安装docker-ce报错找不到安装包
- 安装docker-ce
- CentOS安装Docker
- docker使用过程中需要留意的几个知识点
- Ubuntu 安装 Docker/Redmine/GitLab 教程
- docker高级篇1-dockeran安装mysql主从复制
- docker 安装
- 【非docker-compose】docker下安装rocketmq
- Docker安装Kafka消息队列
- 【Docker 系列】docker 学习 一,Docker的安装使用及Docker的基本工作原理
- docker安装tomcat
- 教你如何使用Docker安装一个MongoDB最新版数据库
- springboot整合docker部署(两种构建Docker镜像方式)详解编程语言
- 使用Docker安装Redis并配置成功(docker安装redis)
- Linux下Docker安装指南(linux下docker安装)
- Ubuntu安装MySQL数据库的指南(ubuntu装mysql)
- 在Ubuntu Trusty 14.04 (LTS) (64-bit)安装Docker
- Ubuntu系统下安装MySQL数据库(ubuntu下安装mysql)
- 使用 Docker 轻松安装 MySQL 数据库(docker安装mysql)
- 快速安装Linux上的Docker(linux安装docker)