mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 07:23:38 +00:00
修复离线安装时依赖包下载、离线rpm包安装依赖先后顺序的问题。
This commit is contained in:
parent
85c5a280a4
commit
8d129d0ead
@ -46,7 +46,9 @@ docker-ce.x86_64 3:19.03.1-3.el7 docker-ce-stable
|
||||
#### 下载到指定文件夹(A)
|
||||
|
||||
```bash
|
||||
sudo yum install --downloadonly --downloaddir=/tmp/docker-19.03 docker-ce-19.03.8-3.el7 docker-ce-cli-19.03.8-3.el7
|
||||
mkdir -p /home/download/docker-ce-19
|
||||
cd /home/download/docker-ce-19
|
||||
sudo repotrack docker-ce-19.03.8-3.el7 docker-ce-cli-19.03.8-3.el7
|
||||
```
|
||||
|
||||
```bash
|
||||
@ -79,8 +81,9 @@ exiting because "Download Only" specified
|
||||
```
|
||||
#### 复制到目标服务器之后进入文件夹安装(C-N)
|
||||
|
||||
安装时不检查依赖
|
||||
```bash
|
||||
yum install *.rpm
|
||||
rpm -Uvh *.rpm --nodeps --force
|
||||
```
|
||||
|
||||
#### 锁定软件版本(C-N)
|
||||
|
Loading…
Reference in New Issue
Block a user