https://github.com/greenpau/vanilla
Docker image with sshd and caddy
https://github.com/greenpau/vanilla
caddy docker dockerimage sshd
Last synced: 7 months ago
JSON representation
Docker image with sshd and caddy
- Host: GitHub
- URL: https://github.com/greenpau/vanilla
- Owner: greenpau
- Created: 2018-11-21T01:08:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-22T15:11:16.000Z (almost 7 years ago)
- Last Synced: 2024-05-22T23:34:14.628Z (over 1 year ago)
- Topics: caddy, docker, dockerimage, sshd
- Language: Shell
- Size: 4.17 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vanilla
Docker image with sshd and caddy
## Getting Started
Building the image:
```
docker build -t greenpau/vanilla .
```Running the image:
```
docker stop vanilla1; docker rm vanilla1
docker run -d -i -t --name=vanilla1 --net=host greenpau/vanilla
docker logs vanilla1
```Connecting to SSH server:
```
ssh -i app/id_rsa -p 2222 root@localhost
```Connecting to Caddy:
```
curl localhost:2280/
```## Reference
Create an archive for `caddy`:
```
cd app/ && cp /usr/bin/caddy .
tar -cvzf caddy.tar.gz ./caddy
rm -rf ./caddy
```Generate SSH keys:
```
ssh-keygen -f ./app/ssh_host_ecdsa_key -N '' -t ecdsa -C=''
ssh-keygen -f ./app/ssh_host_rsa_key -N '' -t rsa -C=''
ssh-keygen -f ./app/ssh_host_ed25519_key -N '' -t ed25519 -C=''
ssh-keygen -f ./app/id_rsa -t rsa -b 4096 -N '' -C=''
```