我为 Docker 引擎启用了 containerd 运行时,然后当我使用端口“80:80”、“7722:22”在此模式下运行容器时,容器无法工作。
gitlab容器的日志
docker exec -it gitlab editor /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab
Cleaning stale PIDs & sockets
It seems you are upgrading from 17.0.1 to 17.5.1.
It is required to upgrade to the latest 17.3.x version first before proceeding.
Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/#upgrade-paths
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=17.5.1-ce.0
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab editor /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
如何在containerd运行时运行端口为“80:80”、“7722:22”的docker容器?
我不确定问题出在 docker 这里。如果您阅读日志,它会显示:
It seems you are upgrading from 17.0.1 to 17.5.1.
It is required to upgrade to the latest 17.3.x version first before proceeding.
因此请先尝试移动到带有
17.3.x
任何标签的图像。