IDEA构建镜像到1panel

idea怎么构建镜像到1panle

尝试使用ssh来连接1panel中的docker报错了。

怎么解决啊,或者有其他好的办法,构建镜像到1panel中吗?

开启 docker 远程访问 API 了吗?

docker 官网有相关配置描述。

你好
修改了配置
出现启动报错

服务内部错误: stderr: Job for docker.service failed because start of the service was attempted too often. See "systemctl status docker.service" and "journalctl -xe" for details. To force a start use "systemctl reset-failed docker.service" followed by "systemctl start docker.service" again.
vagrant@10 ~]$ systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Thu 2024-04-18 17:28:06 UTC; 1min 32s ago
     Docs: https://docs.docker.com
  Process: 16047 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 16047 (code=exited, status=1/FAILURE)
[vagrant@10 ~]$ 

根据自己安装的 docker 版本,然后参考 docker 官网修改一下具体配置吧。

上述报错是因为修改配置错误导致的 docker 启动失败。