收起左侧

飞牛更新后compose无法使用

3
回复
62
查看
[ 复制链接 ]

6

主题

39

回帖

0

牛值

初出茅庐

2025-7-7 16:54:31 显示全部楼层 阅读模式

设备环境:(J1900物理机,系统版本0.9.13)

BUG现象:(最近更新后,docker里的compose无法使用,经常不显示为空,显示了也是未构建。用compose构建容器,结果无法构建容器,日志显示unknown shorthand flag: 'p' in -p)

出现频率:(必现)

联系方式:(15123311665)

建议:系统建议增加tailscale应用,免得使用docker。

截图如下

09bb465c6598cf48e882d745fc75b4cc.png

2f8f0980c29526b28deba541c85073ec.png

34053c482f424b1200489b6847b7b6c3.png

0080532b78e649b02a9c1aad9ecb3c41.png

完整的构建日志如下:

unknown shorthand flag: 'p' in -p
See 'docker --help'.

Usage: docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
run Create and run a new container from an image
exec Execute a command in a running container
ps List containers
build Build an image from a Dockerfile
pull Download an image from a registry
push Upload an image to a registry
images List images
login Log in to a registry
logout Log out from a registry
search Search Docker Hub for images
version Show the Docker version information
info Display system-wide information

Management Commands:
builder Manage builds
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
plugin Manage plugins
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes

Swarm Commands:
swarm Manage Swarm

Commands:
attach Attach local standard input, output, and error streams to a running container
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
export Export a container's filesystem as a tar archive
history Show the history of an image
import Import the contents from a tarball to create a filesystem image
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
save Save one or more images to a tar archive (streamed to STDOUT by default)
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
wait Block until one or more containers stop, then print their exit codes

Invalid Plugins:
buildx failed to fetch metadata: exit status 2
compose failed to fetch metadata: exit status 2

Global Options:
--config string Location of client config files (default
"/root/.docker")
-c, --context string Name of the context to use to connect to the
daemon (overrides DOCKER_HOST env var and
default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket to connect to
-l, --log-level string Set the logging level ("debug", "info",
"warn", "error", "fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default
"/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default
"/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default
"/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit

Run 'docker COMMAND --help' for more information on a command.

For more help on how to use Docker, head to https://docs.docker.com/go/guides/

Exited:0

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

43

主题

8429

回帖

0

牛值

管理员

已收到反馈,我们测试复现一下

5

主题

19

回帖

0

牛值

江湖小虾

重启一下就好了,我也出现这种情况了

我重启过,没用,还是一样。  详情 回复
昨天 14:13

6

主题

39

回帖

0

牛值

初出茅庐

昨天 14:13 楼主 显示全部楼层
as198855 发表于 2025-7-12 17:13
重启一下就好了,我也出现这种情况了

我重启过,没用,还是一样。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则