查看“Docker and docker-compose快速安装”的源代码
←
Docker and docker-compose快速安装
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=最后改DNS8.8.4.4= =docker docker-compose on cenos7= <pre> #install docker yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 yum-config-manager \ --add-repo \ https://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo yum makecache fast yum install docker-ce -y systemctl enable docker systemctl start docker yum -y install vim wget curl yum-utils bash-completion bash-completion-extras epel-release lrzsz telnet python-pip pip install docker-compose mkdir -p /home/data/docker echo '{"graph": "/home/data/docker"}' >/etc/docker/daemon.json # cat /etc/docker/daemon.json {"graph": "/home/data/docker"} systemctl restart docker #验证docker储存位置 docker system info | grep "Root Dir" </pre> =on debian= <pre> #Fri Nov 8 09:54:03 CST 2019 apt install software-properties-common apt-get remove docker docker-engine docker.io containerd runc sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_release -cs) \ stable" apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io </pre> https://docs.docker.com/install/linux/docker-ce/debian/ =docker-compose= <pre> sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose 手工 #firefox 直接下载居然很快 wget https://github.com/docker/compose/releases/download/1.25.0/docker-compose-Linux-x86_64 curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-Linux-x86_64“ </pre> https://docs.docker.com/compose/install/ [[category:ops]] [[category:Container]]
返回至
Docker and docker-compose快速安装
。
导航菜单
个人工具
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
我的导航
关于我
shell
python
ops
linuxchina.net
blog.linuxchina
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息