- Run container using interactive mode with mounted directory for configuration
- Obtain OAuth token using your login and password
- Stop container
- Run container in daemon mode with mounted configuration directory which contains auth token
docker run --rm -it \
-v /opt/yandex.disk/config:/root/.config/yandex-disk \
-v /opt/yandex.disk/data:/root/Yandex.Disk \
ruslanys/yandex.disk setup
docker run -d --name yandex.disk --restart always \
-v /opt/yandex.disk/config:/root/.config/yandex-disk \
-v /opt/yandex.disk/data:/root/Yandex.Disk \
ruslanys/yandex.disk