0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker版Giteaのアップデート

0
Posted at

あれから2年、そろそろアップデートしてみる。

docker-compose.yml
version: '3'
services:
  web:
    #image: gitea/gitea:1.7
    image: gitea/gitea:1.13.1
    volumes:
      - ./gitea-data:/data
    ports:
      - "3000:3000"
      - "10022:10022"
    environment:
      - TZ=Japan
      - SSH_PORT=10022
    restart: always

START_SSH_SERVERの行をコメントアウトする

$ vi gitea-data/gitea/conf/app.ini
;START_SSH_SERVER = true
$ docker-compose pull
$ docker-compose up

クライアント側から参照するサーバー側のkeyが変わるらしいので
クライアント側のknowns_hosts行を削除する。

$ vi ~/.ssh/known_hosts
[192.168.1.100]:10022 ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ←削除

ログに以下の行がssh接続するたびにエラーが記録されてしまうが、動きは問題ないらしい。
ssh logs about missing host certificates · Issue #13724 · go-gitea/gitea

web_1  | Could not load host certificate "/data/ssh/ssh_host_ed25519_cert": No such file or directory
web_1  | Could not load host certificate "/data/ssh/ssh_host_rsa_cert": No such file or directory
web_1  | Could not load host certificate "/data/ssh/ssh_host_ecdsa_cert": No such file or directory
web_1  | Could not load host certificate "/data/ssh/ssh_host_dsa_cert": No such file or directory
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?