docker compose -f docker-compose.dev.yml buildshould build a project using docker-compose.dev.yml Actual behavior I get the error "unknown shorthand flag: 'f' in -f" Steps to reproduce the behavior Output ofdocker version: Client: Docker Engine - Community Version: 20.10.11 API version: 1....
Try to launch the containers using docker composerun -f .devcontainer/docker-compose.yml Expected behavior Unsure, I've not seen it work before, but I assume that the container should run. Actual behavior I get the error "unknown shorthand flag: 'f' in -f" ...
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: 'n'in-name See'docker run --help'. 是因为docker run-itd -name pg中执行启动命令时应该用--name而不是-name
先进入容器: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 compose up -d命令中遇到的unknown shorthand flag: 'd' in -d错误时,我将遵循您给出的提示,分点进行说明。 1. -d标志在docker compose命令中的通常含义 在Docker Compose中,-d或--detach标志的用途是让容器在后台运行,即“detached”模式。这意味着当您启动服务时,终端不会阻塞在这些服务...
我正在尝试停止所有以名称app_开头的容器我认为这会起作用:dockerstop $(dockerps -f name="app_*"),但它显示: unknown shorthand flag: 'f' in -f See 'dockerstop --help'. 浏览179提问于2020-11-03得票数1 回答已采纳 2回答 码头过滤容器,按图像名称和年龄分列 ...
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 in that script but-dis...
下面是我运行docker compose events时运行进程的结果:
But if you also pass a flag, the error focuses on the flag instead of the misspelled command name: $docker iamges --filterunknown flag: --filterSee 'docker --help'. Reproduce $docker iamges --filterunknown flag: --filter$docker iamges -funknown shorthand flag: 'f' in -f ...