···8899These instructions assume a user `www-data` on the host for Docker to use.
10101111-1. In `knot-docker` directory, create Docker image with
1212- `docker build -t knot:latest --build-arg TAG=master --build-arg UID=$(id -u www-data) --build-arg GID=$(id -u www-data) .`
1111+1. In `knot-docker` directory, edit the TAG variable in the Dockerfile and create Docker image with
1212+ `docker build -t knot:latest --build-arg UID=$(id -u www-data) --build-arg GID=$(id -u www-data) .`
13132. In this directory, create bind mount directories with `mkdir keys repositories server`
14143. Ensure `repositories` and `server` are owned by `www-data`
1515 with `chown www-data:www-data repositories server`
···17174. Create Docker container with `docker-compose up -d`
18185. Knot is now ready for reverse proxy from `KNOT_SERVER_HOSTNAME:443` to local port 5555
1919 (knot verification will not work over HTTP port 80!)
2020-2121-<!--
2222-Once the container is up, the Git repositories directory
2323-needs to be specified explicitly as `/home/git/repositories` in `AuthorizedKeysCommand`
2424-(see [knot-hosting](https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md#repositories)).
2525-Create the file `/etc/ssh/sshd_config.d/authorized_keys_command.conf` with the following:
2626-2727-```
2828-Match User git
2929- AuthorizedKeysCommand /usr/bin/knot keys -o authorized-keys -git-dir /home/git/repositories
3030- AuthorizedKeysCommandUser nobody
3131-```
3232-3333-(This should probably be done in the Dockerfile when building the image.)
3434--->
35203621## Repository troubleshooting
3722