Docker 0x03:Install Docker

目录

  • Install Docker

    • Centos

      • yum 安装
      • 运行docker-daemon并开机自启动
      • 运行hello-world应用docker容器中
    • Ubn

Install Docker

docker现在分Moby,Docker CE 和Docker EE。由于docker开源后,将docker开源项目变为了Moby项目。对于想开发docker的人现在转移到Moby,而对于我们使用docker的用户,即再docker上有的应用开发和维护,还是关注docker EE。

Centos

yum 安装

yum install -y docker

运行docker-daemon并开机自启动

systemctl start docker # 启动docker-daemon
systemctl enable docker # 设置开机启动docker-daemon
systemctl status docker # 查看docker-daemon状态

运行hello-world应用docker容器中

docker run hello-world

Ubn

...

原文地址:https://www.cnblogs.com/ZJiQi/p/11143418.html

时间: 2024-07-29 00:54:09

Docker 0x03:Install Docker的相关文章

How To Install Docker On Ubuntu 18.04

Docker is an increasingly popular software package that creates a container for application development. Developing in Docker speeds up applications, as it shares the kernel and other resources, instead of requiring dedicated resources. There are two

Install Docker on Mac OS X(转)

Install Docker on Mac OS X You can install Docker using Boot2Docker to run docker commands at your command-line. Choose this installation if you are familiar with the command-line or plan to contribute to the Docker project on GitHub. Alternatively,

install docker on centos7

copy from:https://www.youtube.com/watch?v=pm55BUwQ0iE # Prerequisites - Kernel must be 3.10 at minimum - For checking kernel version, use this command: uname -r # Add Docker's repository - Create file docker.repo and save it in /etc/yum.repos.d/ sudo

install docker

官网安装地址 https://docs.docker.com/engine/installation/linux/centos/ 先找官网 是个不错的思路 这里只贴yum安装的方法 install with yum  1.登录的用户用户需要有sudo 权限或者是root 2.更新系统的包,尽量都保持最新的 3.内核最好大于等于3.10.x,如果小于比较麻烦,这里不做介绍 以下我均是直接用root操作的,非root用户执行命令加sudo 4.添加yum源 直接复制粘贴回车即可,不用创建文件 $ s

Docker - Install docker on CentOS

1. 准备 由于 Dokcer 需要 64bit OS, 版本号 3.10 或者更新的版本.所以,需要我们先确认我们的 CentOS 系统 $ uname -r output :: 3.10.0-229.el7.x86_64 2.使用Yum 安装 2.1 更新 yum 到最新版本 $ yum update 2.2 Add the yum repo $ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker

Ubuntu install Docker

首先需要说明的是,根据Docker的官方文档,Docker的安装必须在64位的机子上.这里只说明Ubuntu 14.04与16.04,我成功安装成功过Ubuntu 14.04,16.04还没有测试过,若为Ubuntu 12.04参考官方文档. 官方文档地址:https://docs.docker.com/engine/installation/linux/ubuntulinux/ 建议先按照官方文档步骤安装,若读不懂可以参考我写的,有问题请给我留言 -----------------------

Install Docker on Mac OS X

小白来山寨一把官网文档. Docker不能直接跑在OS X上,需要先安装下VirtualBox和boot2docker.boot2docker会帮我们启动vm,启动docker,并且本身提供一些管理命令. boot2docker也很轻量级,完全在内存里启动一个VM,只占24M大小,几秒内就可以启动. 安装过程 1) 下载VirtualVM-xxx-xxx.dmg,并安装. 2) 使用brew安装boot2docker以及docker brew install boot2docker brew i

install docker on centos 6

前言: docker 官方给出的文档是建议安装在centos 7 版本上,并且是x64 系统,kernel 版本为3.10或更高版本 可使用 uname -r 查看kernel版本 uname -r 2.6.32-573.el6.x86_64 这里由于使用的是centos 6.7系统,没有升级,所以kernel 版本为2.6 可使用yum upgrade 升级,或使用2.6的内核安装docker 注:使用低于3.10版本的内核安装docker 可能会有些问题. 官方文档https://docs.

centos Install Docker

安装必备软件 yum -y install iptables  iptables-services net-tools vim wget 安装Dockeryum -y install docker 下载centos镜像docker pull centos 查看centos 镜像docker images centos 运行一个Docker容器docker run -i -t centos /bin/bash 搜索Ubuntu镜像docker search Ubuntu 显示正在运行的容器(需要先