我正在尝试在Windows 10上使用以下命令启动docker映像(https://hub.docker.com/r/parrotstream/hbase/)
docker-compose -p parrot up
但是我得到这个错误:
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml, docker-compose.yaml
在其中包含docker映像的目录中执行命令也不起作用。我是使用Docker的新手,不确定如何启动容器。根据镜像的Docker Hub页面,这就是我要做的。我想念什么吗?
谢谢
编辑:
如答复所指出,我已经从github下载了该文件夹,包括docker-compose.yml。由于我的允许,我目前遇到错误。
ERROR: for hbase Cannot start service hbase: driver failed programming external connectivity on endpoint hbase (5fb66c3b2b0d3092edce09f03cc803cc3ea447c07a1a2135271238de626458c6): Error starting userland proxy: Bind for 0.0.0.0:8080: unexpected error Permission denied
ERROR: for hbase Cannot start service hbase: driver failed programming external connectivity on endpoint hbase (5fb66c3b2b0d3092edce09f03cc803cc3ea447c07a1a2135271238de626458c6): Error starting userland proxy: Bind for 0.0.0.0:8080: unexpected error Permission denied
ERROR: Encountered errors while bringing up the project.
我在docker中的配置是否错误?
docker-compose.yml
您正在寻找的实际对象可能是在此处找到的他们的github存储库中托管的那个。
version: '3'
services:
hbase:
container_name: hbase
build:
context: .
dockerfile: Dockerfile
image: parrotstream/hbase:latest
external_links:
- hadoop
- zookeeper
ports:
- 8080:8080
- 8085:8085
- 9090:9090
- 9095:9095
- 60000:60000
- 60010:60010
- 60020:60020
- 60030:60030
networks:
default:
external:
name: parrot_default
默认情况下,docker-compose
尝试从docker-compose.yml
当前工作目录中名为的文件中读取配置。您可以使用来覆盖此行为docker-compose -f <anotherfile.yml>
。
Options:
-f, --file FILE Specify an alternate compose file
(default: docker-compose.yml)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句