datahub-project / datahub

The Metadata Platform for your Data Stack
https://datahubproject.io
Apache License 2.0
9.85k stars 2.91k forks source link

datahub docker quickstart is not work #6409

Closed bigdata-spec closed 1 year ago

bigdata-spec commented 1 year ago

Hello, everyone I follow https://datahubproject.io/docs/quickstart , Install the DataHub CLI is ok,but when I run datahub docker quickstart

(datahub) [root@localhost datahub-0.9.2]# datahub version
DataHub CLI version: 0.9.2
Python version: 3.9.10 (main, Nov 11 2022, 13:45:05) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
(datahub) [root@localhost datahub-0.9.2]# pwd
/opt/datahub/datahub-0.9.2
(datahub) [root@localhost datahub-0.9.2]# ll
total 108
-rw-r--r--.  1 root root 12508 Nov  5 05:59 build.gradle
drwxr-xr-x.  3 root root    37 Nov  5 05:59 buildSrc
-rw-r--r--.  1 root root    46 Nov  5 05:59 CODEOWNERS
drwxr-xr-x.  4 root root    70 Nov  5 05:59 contrib
drwxr-xr-x.  7 root root   119 Nov  5 05:59 datahub-frontend
drwxr-xr-x.  3 root root    54 Nov  5 05:59 datahub-graphql-core
drwxr-xr-x.  2 root root    23 Nov  5 05:59 datahub-kubernetes
drwxr-xr-x.  5 root root    84 Nov  5 05:59 datahub-ranger-plugin
drwxr-xr-x.  3 root root    37 Nov  5 05:59 datahub-upgrade
drwxr-xr-x.  5 root root  4096 Nov  5 05:59 datahub-web-react
drwxr-xr-x. 30 root root  4096 Nov  5 05:59 docker
drwxr-xr-x. 24 root root  4096 Nov  5 05:59 docs
drwxr-xr-x.  6 root root   255 Nov  5 05:59 docs-website
drwxr-xr-x.  4 root root    62 Nov  5 05:59 entity-registry
drwxr-xr-x.  6 root root    69 Nov  5 05:59 gradle
-rw-r--r--.  1 root root   533 Nov  5 05:59 gradle.properties
-rwxr-xr-x.  1 root root  8070 Nov  5 05:59 gradlew
-rw-r--r--.  1 root root  2763 Nov  5 05:59 gradlew.bat
drwxr-xr-x.  3 root root    37 Nov  5 05:59 ingestion-scheduler
-rw-r--r--.  1 root root 11365 Nov  5 05:59 LICENSE
drwxr-xr-x.  3 root root    37 Nov  5 05:59 li-utils
-rw-r--r--.  1 root root    70 Nov  5 05:59 lombok.config
drwxr-xr-x.  3 root root    28 Nov  5 05:59 metadata-dao-impl
drwxr-xr-x.  6 root root    95 Nov  5 05:59 metadata-events
drwxr-xr-x. 10 root root  4096 Nov  5 05:59 metadata-ingestion
drwxr-xr-x.  3 root root    28 Nov  5 05:59 metadata-ingestion-modules
drwxr-xr-x.  3 root root    18 Nov  5 05:59 metadata-integration
drwxr-xr-x.  3 root root    37 Nov  5 05:59 metadata-io
drwxr-xr-x.  7 root root   130 Nov  5 05:59 metadata-jobs
drwxr-xr-x.  5 root root    60 Nov  5 05:59 metadata-models
drwxr-xr-x.  5 root root    85 Nov  5 05:59 metadata-models-custom
drwxr-xr-x.  3 root root    37 Nov  5 05:59 metadata-models-validator
drwxr-xr-x. 15 root root   284 Nov  5 05:59 metadata-service
drwxr-xr-x.  3 root root    37 Nov  5 05:59 metadata-utils
-rw-r--r--.  1 root root 15205 Nov  5 05:59 NOTICE
drwxr-xr-x.  4 root root   119 Nov  5 05:59 perf-test
-rw-r--r--.  1 root root 10329 Nov  5 05:59 README.md
-rw-r--r--.  1 root root   429 Nov  5 05:59 repositories.gradle
-rw-r--r--.  1 root root  1395 Nov  5 05:59 SECURITY.md
-rw-r--r--.  1 root root  1752 Nov  5 05:59 settings.gradle
drwxr-xr-x.  4 root root   204 Nov  5 05:59 smoke-test
drwxr-xr-x.  4 root root    48 Nov  5 05:59 test-models
(datahub) [root@localhost datahub-0.9.2]# datahub docker quickstart --quickstart-compose-file ./docker/quickstart/docker-compose-without-neo4j.quickstart.yml
Pulling docker images...
unknown shorthand flag: 'f' in -f
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

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(s) 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

Management Commands:
  app*        Docker App (Docker Inc., v0.9.1-beta3)
  builder     Manage builds
  buildx*     Build with BuildKit (Docker Inc., v0.6.3-docker)
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  scan*       Docker Scan (Docker Inc., v0.21.0)
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  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
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  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
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  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
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  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
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes

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

To get more help with docker, check out our guides at https://docs.docker.com/go/guides/

Error while pulling images. Going to attempt to move on to docker compose up assuming the images have been built locally

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

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

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(s) 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

Management Commands:
  app*        Docker App (Docker Inc., v0.9.1-beta3)
  builder     Manage builds
  buildx*     Build with BuildKit (Docker Inc., v0.6.3-docker)
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  scan*       Docker Scan (Docker Inc., v0.21.0)
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  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
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  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
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  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
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  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
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes

Run 'docker COMMAND --help' for more information on a command.
mayurinehate commented 1 year ago

Hi @jiangbiao910 please install docker compose using any of methods mentioned here - https://docs.docker.com/compose/install/ and retry.

laulpogan commented 1 year ago

Hi @jiangbiao910 this seems like a troubleshooting issue, rather than a bug. We're happy to provide community support on our Slack channel, but currently reserve git issues for bugs.

If you're still having trouble, please join us at slack.datahubproject.io and we can troubleshoot there. For now, I'm going to close this issue.