Docker使用教程


当我们把CentOS 6.5安装好以后,可以使用这个脚本来使用国内的阿里云镜像源

#!/bin/bash
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum makecache

有了国内的源地址,后面安装东西就方便了。
搜索docker,可以看到docker-io.x86_64和docker-registry.noarch,安装docker就简单了。

[root@localhost ~]# yum search docker
 Loaded plugins: fastestmirror
 Loading mirror speeds from cached hostfile
 ======================================================== N/S Matched: docker =========================================================
 python-docker-py.x86_64 : An API client for docker written in Python
 docker-io.x86_64 : Automates deployment of containerized applications
 docker-registry.noarch : Registry server for Docker
 Fedora-dockerfiles.noarch : Example dockerfiles to assist standing up containers quickly
 imagefactory-plugins-Docker.noarch : Cloud plugin for Docker
 docker.x86_64 : KDE and GNOME2 system tray replacement docking application


  Name and summary matches only, use "search all" for everything.

 

CentOS 6/7系列安装Docker  

Docker的搭建Gitlab CI 全过程详解  

Docker安装应用(CentOS 6.5_x64)  

Docker 和一个正常的虚拟机有何区别?  

在 Docker 中使用 MySQL  

Docker 将改变所有事情  

Docker安装应用(CentOS 6.5_x64)  

更多详情见请继续阅读下一页的精彩内容:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 下一页
【内容导航】
第1页:CentOS 6.5 使用aliyun镜像脚本 第2页:CentOS 6.5 制作可以ssh登录的Docker镜像
第3页:CentOS 6.5 快速体验Ubuntu 14.04 可以ssh 登陆 第4页:CentOS 6.5 制作自动授信Docker容器镜像
第5页:CentOS 6.5 制作Docker Registry镜像 第6页:CentOS 6.5 制作Docker DNS服务镜像

相关内容