在解答您关于docker compose up -d命令中遇到的unknown shorthand flag: 'd' in -d错误时,我将遵循您给出的提示,分点进行说明。 1. -d标志在docker compose命令中的通常含义 在Docker Compose中,-d或--detach标志的用途是让容器在后台运行,即“detached”模式。这意味着当您启动服务时,终端不会阻塞在这些服务...
先进入容器:docker exec -it 容器名或容器id /bin/bash 进入容器执行,apt-get install net-tools 命令 再执行,apt-get install iputils-ping 命令 容器不停止退出:Ctrl+P+Q 然后再次执行 docker exec -it 容器名或容器id ping [ip地址] [root@fanguoan /]# docker exec -it tomcat-net-01 ping 192.168....
docker启动容器时报错unknownshorthandflag:‘n‘in-name docker启动容器时报错unknownshorthandflag:‘n‘in-name unknown shorthand flag: 'n' in -name See 'docker run --help'.是因为docker run -itd -name pg中执⾏启动命令时应该⽤--name⽽不是-name ...
unknown shorthand flag: 'd' in -d /usr/libexec/docker/cli-plugins/目录下没有docker-compose或者有docker-compose但执行docker help显示 Invalid Plugins: compose failed to fetch metadata: exit status 1 实际上是docker-compose未安装或者docker-compose版本太低 解决下载 docker-compose curl -SL https://g...
docker-compose up -d unknown shorthand flag: ‘d’ in -d See ‘docker --help’. rimelek(Ákos Takács)February 2, 2023, 10:44pm2 It looks like yourdocker-composecommand is actually a shell script which runs the docker command. “up” might be supported ...
Expected behavior Docker allows executing chained commands like rm with ps in powershell. Actual behavior unknown shorthand flag: 'a' in -aqf error is displayed (see steps). If we remove a flag, the same error will point to q flag. Infor...
I get the error "unknown shorthand flag: 'f' in -f" Additional context Any other information you think could be meaningful to this issue. glpugaadded thebugSomething isn't workinglabelJul 12, 2024 Collaborator hidmiccommentedJul 12, 2024 ...
我已经安装了DockerDesktop for Mac,并且正在尝试在docker容器中运行Jenkins。当我尝试运行以下命令时:dockerrun --name jenkinsci -p 8080:8080 jenkins/jenkins:lts报告以下错误: unknown shorthand flag: 'p' in -p 我已经成功地通过了Get started withDockerDesktop f ...
Environment Docker version 18.09.1, build 4c52b901c6cb docker-compose version 1.24.0, build 0aa5906 Dear Community, the command docker -compose up -d shows error unknown shorthand flag: ‘c’ in -compose See ‘docker…
unknown shorthand flag: 'n' in -name See 'docker run --help'. 是因为docker run -itd -name pg中执行启动命令时应该用--name而不是-name