Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 反馈问题:unknown shorthand flag: 'd' in -d #4

Closed
2 tasks done
Inotart opened this issue Jun 19, 2024 · 12 comments
Closed
2 tasks done

🐞 反馈问题:unknown shorthand flag: 'd' in -d #4

Inotart opened this issue Jun 19, 2024 · 12 comments

Comments

@Inotart
Copy link

Inotart commented Jun 19, 2024

前置确认

  • 我确认使用的是国外未被墙的服务器,使用的是最新脚本,并且服务器规格 >= 1C1G

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Ubuntu

复现步骤 🕹

bash -c "$(curl -fsSL https://raw.githubusercontent.com/kubesre/docker-registry-mirrors/main/dockerproxy/install/DockerProxy_Install.sh)"

问题描述 😯

unknown shorthand flag: 'd' in -d

终端日志 📒

# bash -c "$(curl -fsSL https://raw.githubusercontent.com/kubesre/docker-registry-mirrors/main/dockerproxy/install/DockerProxy_Install.sh)"


    ██████╗  ██████╗  ██████╗██╗  ██╗███████╗██████╗     ██████╗ ██████╗  ██████╗ ██╗  ██╗██╗   ██╗
    ██╔══██╗██╔═══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗    ██╔══██╗██╔══██╗██╔═══██╗╚██╗██╔╝╚██╗ ██╔╝
    ██║  ██║██║   ██║██║     █████╔╝ █████╗  ██████╔╝    ██████╔╝██████╔╝██║   ██║ ╚███╔╝  ╚████╔╝
    ██║  ██║██║   ██║██║     ██╔═██╗ ██╔══╝  ██╔══██╗    ██╔═══╝ ██╔══██╗██║   ██║ ██╔██╗   ╚██╔╝
    ██████╔╝╚██████╔╝╚██████╗██║  ██╗███████╗██║  ██║    ██║     ██║  ██║╚██████╔╝██╔╝ ██╗   ██║
    ╚═════╝  ╚═════╝  ╚═════╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝    ╚═╝     ╚═╝  ╚═╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝

----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------


[INFO] ====================== 请选择操作 ======================
1) 新装服务
2) 重启服务
3) 更新服务
5) 卸载服务
6) 增加网关
7) 增加别名
8) 增加常用仓库别名
[INFO] 输入对应数字并按 Enter 键: 1
[INFO] ======================= 检查环境 =======================
[INFO] System release:: Ubuntu
[INFO] System version: 22.04.4 LTS (Jammy Jellyfish)
[INFO] System ID: ubuntu
[INFO] System ID Like: debian
[INFO] 内存资源充足。请继续.(16%)
[INFO] 防火墙已被禁用.
[INFO] 是否执行软件包安装? [y/n]: y
[INFO] ======================= 安装依赖 =======================
[INFO] lsof 已安装,跳过...
[INFO] jq 已安装,跳过...
[INFO] wget 已安装,跳过...
[INFO] tar 已安装,跳过...
[INFO] mailutils 已安装,跳过...
[INFO] ====================== 安装Docker ======================
[INFO] docker 已安装,安装版本为:Docker version 24.0.7, build 24.0.7-0ubuntu2~22.04.1
[INFO] ======================= 开始安装DOCKER PROXY =======================
unknown shorthand flag: 'd' in -d
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

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/

[INFO] ======================= 检测DOCKER PROXY部署状态 =======================
[ERROR]  gateway 服务没有在运行,部署失败
[ERROR]  crproxy 服务没有在运行,部署失败
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐞 Feedback question:

@Inotart Inotart changed the title 🐞 反馈问题: 🐞 反馈问题:unknown shorthand flag: 'd' in -d Jun 19, 2024
@dqzboy
Copy link
Owner

dqzboy commented Jun 19, 2024

不好意思,你所使用的脚本并非本项目的,而是另外一个作者克隆或参考本项目后 进行改造的。请使用本项目提供的部署脚本进行部署,谢谢!

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Sorry, the script you used does not belong to this project, but was modified by another author after cloning or referring to this project. Please use the deployment script provided by this project to deploy, thank you!

@Inotart Inotart closed this as completed Jun 19, 2024
@rhwong
Copy link

rhwong commented Jun 27, 2024

same issue
I used bash -c "$(curl -fsSL https://raw.githubusercontent.com/dqzboy/Docker-Proxy/main/install/DockerProxy_Install.sh)"

@rhwong
Copy link

rhwong commented Jun 27, 2024

log

[INFO] 输入序号下载对应配置文件,空格分隔多个选项. all下载所有: 1
[INFO] 是否需要配置镜像仓库访问账号和密码? (y/n): n
[INFO] 是否添加代理? (y/n): n
[WARN] 跳过代理配置
[INFO] 拉取服务镜像并启动服务中,请稍等...
unknown shorthand flag: 'd' in -d
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
  ...... ...

@dqzboy
Copy link
Owner

dqzboy commented Jun 27, 2024

log

[INFO] 输入序号下载对应配置文件,空格分隔多个选项. all下载所有: 1
[INFO] 是否需要配置镜像仓库访问账号和密码? (y/n): n
[INFO] 是否添加代理? (y/n): n
[WARN] 跳过代理配置
[INFO] 拉取服务镜像并启动服务中,请稍等...
unknown shorthand flag: 'd' in -d
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
  ...... ...

检查docker版本

@rhwong
Copy link

rhwong commented Jun 27, 2024

OS: Ubuntu 20.04 LTS x86_64
Host: CVM 3.0
Kernel: 5.4.0-90-generic
Uptime: 595 days, 21 hours, 25 mins
Packages: 1006 (dpkg)
Shell: bash 5.0.17
Resolution: 1024x768
Terminal: /dev/pts/0
CPU: AMD EPYC 7K62 (2) @ 2.595GHz
GPU: 00:02.0 Cirrus Logic GD 5446
Memory: 366MiB / 1986MiB
Docker version 24.0.7, build 24.0.7-0ubuntu2~20.04.1

@dqzboy
Copy link
Owner

dqzboy commented Jun 27, 2024

cd /data/registry-proxy/
docker compose up -d

手动执行下上面的命令

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


cd /data/registry-proxy/
docker compose up -d

Manually execute the above command

@rhwong
Copy link

rhwong commented Jun 27, 2024

root@VM-8-8-ubuntu:~# cd /data/registry-proxy/
root@VM-8-8-ubuntu:/data/registry-proxy# docker compose up -d
unknown shorthand flag: 'd' in -d
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers
...

@dqzboy
Copy link
Owner

dqzboy commented Jun 27, 2024

升级下你的docker版本

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Upgrade your docker version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants