Update README.md

This commit is contained in:
Nils 2021-02-12 23:41:21 +00:00 committed by GitHub
parent de0c0c5635
commit dc967f3363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -8,24 +8,24 @@ Dockerhub: [ssh-chat](https://hub.docker.com/r/byreqz/ssh-chat)
Generate keys outside of Docker to keep persistence, and not get warnings: Generate keys outside of Docker to keep persistence, and not get warnings:
``` ```bash
$ ssh-keygen -t rsa -b 4096 -N '' -f ./ssh-chat-key $ ssh-keygen -t rsa -b 4096 -N '' -f ./ssh-chat-key
``` ```
Run the docker image: Run the docker image:
``` ```bash
$ docker run -p 2022:2022 -v /ssh-chat-key:/ssh_key -v /admin_keys:/admin_keys byreqz/ssh-chat:latest $ docker run -p 2022:2022 -v /ssh-chat-key:/ssh_key -v /admin_keys:/admin_keys byreqz/ssh-chat:latest
``` ```
You may supply additional arguments to the image, example: You may supply additional arguments to the image, example:
``` ```bash
$ docker run -p 22:22 -v /ssh-chat-key:/ssh_key -v /admin_keys:/admin_keys byreqz/ssh-chat:latest --bind ":22" $ docker run -p 22:22 -v /ssh-chat-key:/ssh_key -v /admin_keys:/admin_keys byreqz/ssh-chat:latest --bind ":22"
``` ```
Docker Compose: Docker Compose:
``` ```yaml
version: '3.1' version: '3.1'
services: services:
ssh-chat: ssh-chat: