parent
bc9fe8c376
commit
2a4c7cf815
10
README.md
10
README.md
|
@ -5,6 +5,13 @@
|
||||||
|
|
||||||
## 凭证
|
## 凭证
|
||||||
使用密钥登录,请提前将运行的用户的凭证放到远程服务器上(ssh-copy-id)
|
使用密钥登录,请提前将运行的用户的凭证放到远程服务器上(ssh-copy-id)
|
||||||
|
可以先启动容器后在容器内部使用
|
||||||
|
```
|
||||||
|
ssh-copy-id -p 222 user@host
|
||||||
|
|
||||||
|
# 若构建镜像时没有生成密钥凭证可先生成(容器内部执行)
|
||||||
|
ssh-keygen -t rsa -b 4096 -N "" -f /root/.ssh/id_rsa
|
||||||
|
```
|
||||||
|
|
||||||
## 构建
|
## 构建
|
||||||
```
|
```
|
||||||
|
@ -30,5 +37,6 @@ services:
|
||||||
REMOTE_LISTEN_PORT: 需要转发的服务器端口
|
REMOTE_LISTEN_PORT: 需要转发的服务器端口
|
||||||
LOCAL_LISTEN_PORT: 本地监听端口
|
LOCAL_LISTEN_PORT: 本地监听端口
|
||||||
LOCAL_LISTEN_HOST: 本地监听地址
|
LOCAL_LISTEN_HOST: 本地监听地址
|
||||||
restart: always
|
stdin_open: true
|
||||||
|
tty: true
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue