问题描述
我想将docker-maven-plugin (0.33.0)与podman (2.0.6)一起使用。根据{{3}},这应该是可能的-在实验阶段。这是我所做的。
为docker设置别名
alias docker=podman
启动podman REST服务
podman system service -t 0 &
unix:/run/user/7001/podman/podman.sock
尝试从dockerfile构建映像
mvn docker:build
并获得:
[INFO] Building tar: /[...]/tmp/docker-build.tar
[INFO] DOCKER> [myapp:latest] "myapp": Created docker-build.tar in 918 milliseconds
Sep 02,2020 2:39:24 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (jnr.enxio.channels.NativeException) caught when processing request to {}->unix://127.0.0.1:1: Connection reset by peer
Sep 02,2020 2:39:24 PM org.apache.http.impl.execchain.RetryExec execute
INFO: retrying request to {}->unix://127.0.0.1:1
Sep 02,2020 2:39:25 PM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (jnr.enxio.channels.NativeException) caught when processing request to {}->unix://127.0.0.1:1: Connection reset by peer
Sep 02,2020 2:39:25 PM org.apache.http.impl.execchain.RetryExec execute
INFO: retrying request to {}->unix://127.0.0.1:1
Sep 02,2020 2:39:25 PM org.apache.http.impl.execchain.RetryExec execute
INFO: retrying request to {}->unix://127.0.0.1:1
[ERROR] DOCKER> Unable to build image [myapp] : Connection reset by peer [Connection reset by peer]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
看来,这不是许可问题。我可以使用curl和同一个用户连接到套接字
curl -i --unix-socket /run/user/7001/podman/podman.sock http://localhost/info
... 200 OK ... and json payload
您知道我的设置中可能出什么问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)