将dockermachine ssh配置添加到您的个人ssh配置中
docker-machine-add-ssh的Python项目详细描述
DOCKER-MACHINE添加SSH
这是一个命令行程序,允许您使用普通
ssh命令使用Docker
Machine而不是使用
^{
用法
usage: docker-machine-add-ssh [-h] [-r] [-d] [-f] [-B] [-S] name
Adds docker-machine ssh configuration to your personal ssh configuration.
Normally, you ssh to a docker-machine using command "docker-machine ssh
<mach>" but after running this utility once for the specified machine, you can
then on use ssh in the normal way, e.g. "ssh <mach>". Other standard programs
such as scp, sftp, rsync, and anything else that relies on them or normal ssh
can then also be used to that docker-machine.
positional arguments:
name docker machine name
optional arguments:
-h, --help show this help message and exit
-r, --replace do not fail if host entry already exists, just replace it
-d, --delete just delete any existing host entry
-f, --files get parameters directly from files rather than via docker-
machine command
-B, --nobackup do not create a backup file
-S, --nostrict disable strict host key check
Note you can set default starting arguments in ~/.config/docker-machine-add-
ssh-flags.conf.
有关最新的文档和代码,请访问 https://github.com/bulletmark/docker-machine-add-ssh/。在
示例
^{pr2}$默认参数
您可以向个人配置文件添加默认参数
~/.config/docker-machine-add-ssh-flags.conf
。如果该文件存在,则每个
参数行将被连接并自动加上前缀
到您的docker-machine-add-ssh
命令行参数。在
这允许您将默认的首选起始参数设置为
docker-machine-add-ssh
。键入docker-machine-add-ssh -h
查看
支持参数。
E、 使
docker-machine-add-ssh
始终替换现有的主机项,即使
他们已经存在了。在
安装
确保
^{
注意docker-machine-add-ssh is on
PyPI这样你就可以
键入sudo pip3 install docker-machine-add-ssh
。Arch用户可以安装
docker-machine-add-ssh from the
AUR。在
或者,执行以下操作从源存储库安装。在
$ git clone http://github.com/bulletmark/docker-machine-add-ssh $ cd docker-machine-add-ssh # Install globally .. $ sudo pip3 install . # Or, install for yourself only .. $ pip3 install .
升级
$ cd docker-machine-add-ssh # Source dir, as above $ git pull $ sudo pip3 install -U . # Or, pip3 install -U .
拆卸
$ sudo pip3 uninstall docker-machine-add-ssh
# Or, pip3 uninstall docker-machine-add-ssh
许可证
版权所有(C)2020 Mark Blakeney。此程序在 GNU通用公共许可证的条款。 这个程序是免费软件:你可以重新发布和/或修改它 根据GNU通用公共许可证的条款 自由软件基金会,许可证版本3或更高版本 版本。 发布这个程序是希望它能有用,但是 没有任何保证;甚至没有 适销性或对特定目的的适用性。见GNU将军 有关详细信息,请访问http://www.gnu.org/licenses/上的公共许可证。在
- 项目
标签: