
- enable https proxy
I recently updated SCM-Manager from v2 to v3 and encountered an issue with Cloudflare HTTPS. In v2, HTTPS worked fine when my domain was proxied through Cloudflare, even though I hadn’t set up SSL on my server. However, after upgrading to v3, Cloudflare HTTPS no longer works.
For https on cloudflare, I use this configuration:
Flexible: Enable encryption only between your visitors and Cloudflare. This will avoid browser security warnings, but all connections between Cloudflare and your origin are made through HTTP.
Solution: Change the config variable forwardHeadersEnabled to true and reboot. The config file is in this path:
/etc/scm/config.yml
2. cache should be writeable
check your permissions for /var/cache/scm/work? This directory (and all subdirectories) have to be writable by scm.
3. scm home folder should be set with owner and group 1000:1000
sudo chown -R 1000:1000 /scm_home
4. 需要登录root用户才能执行docker相关命令,输入sudo -i命令后,再输入管理员密码,就能切换为root用户了
5. docker ps 查看容器,
docker exec -it -u root [id] /bin/bash
原创文章,作者:江海志,如若转载,请注明出处:https://jianghaizhi.com/wzjs/1840.html
Comments(1)
需要登录root用户才能执行docker相关命令,输入sudo -i命令后,再输入管理员密码,就能切换为root用户了