Open
Conversation
xiezipeng-ML
reviewed
Aug 3, 2024
xiezipeng-ML
reviewed
Aug 3, 2024
xiezipeng-ML
reviewed
Aug 3, 2024
|
|
||
| ## 4. 运行Playbook | ||
|
|
||
| 使用以下命令运行Playbook,并解密变量文件: |
There was a problem hiding this comment.
这个是不是要求其它服务器首先要有主服务器公钥才能执行,不然报错连接失败
Collaborator
Author
There was a problem hiding this comment.
嗯# 使用 Ansible 将 SSH 公钥分发到多个目标主机就是配置公钥的。
xiezipeng-ML
reviewed
Aug 3, 2024
| - 默认使用: | ||
|
|
||
| ```bash | ||
| ./pull.sh |
xiezipeng-ML
reviewed
Aug 3, 2024
| - 指定镜像标签: | ||
|
|
||
| ```bash | ||
| ./pull.sh alpine:latest |
There was a problem hiding this comment.
我这指定标签的看起来会timeout
TASK [Pull Docker image if not present] ************************************************************************************************************************
fatal: [of25]: FAILED! => {"changed": false, "msg": "Error pulling alpine - code: None message: error pulling image configuration: download failed after attempts=6: dial tcp 108.160.169.181:443: i/o timeout"}
fatal: [of27]: FAILED! => {"changed": false, "msg": "Error pulling alpine - code: None message: error pulling image configuration: download failed after attempts=6: dial tcp 31.13.112.9:443: i/o timeout"}
Collaborator
Author
There was a problem hiding this comment.
这个timeout我也是,所以就开发了 load + commit的方式,后面我们会自定义一个镜像,pull这个可能用不到。
…mark into ansible_resnet
|
docker image: |
xiezipeng-ML
approved these changes
Nov 1, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
使用 ansible 在集群中进行分布式训练。