当我使用像这样的码头工具cloudera时:
docker run -it cloudera/quickstart:latest /usr/bin/docker-quickstart
一切正常,我无法使用它,并通过DOCKER_IP访问ui:50070
但是,如果我想将cloudera添加到docker-compose文件中,就像那样:
version: '2'
services:
cloudera:
image: cloudera/quickstart:latest
command: /usr/bin/docker-quickstart
ports:
- "8020:8020"
- "8022:22" # ssh
- "7180:7180" # Cloudera Manager
- "8888:8888" # HUE
- "11000:11000" # Oozie
- "50070:50070" # HDFS REST Namenode
- "2181:2181"
- "11443:11443"
- "9090:9090"
- "8088:8088"
- "19888:19888"
- "9092:9092"
- "8983:8983"
- "16000:16000"
- "16001:16001"
- "42222:22"
- "8042:8042"
- "60010:60010"
- "8080:8080"
- "7077:7077"
Nothings工作,容器在发射后直接停止。 这里只是信息堆栈跟踪的结束:
cloudera_1 | Starting Solr server daemon:[ OK ]
cloudera_1 | Existing PID file found during start.
cloudera_1 | Removing/clearing stale PID file.
cloudera_1 | Started Impala Catalog Server (catalogd) :[ OK ]
cloudera_1 | Started Impala Server (impalad):[ OK ]
hadoopmongokafka_cloudera_1 exited with code 0
我做错了什么?
答案 0 :(得分:2)
我认为这个问题非常类似于one。
您可以检查是否将tty: true
字段添加到您的泊坞窗中 - 撰写问题解决了吗?
version: '2'
services:
cloudera:
image: cloudera/quickstart:latest
command: /usr/bin/docker-quickstart
tty: true
ports:
- "8020:8020"
...
答案 1 :(得分:1)
同样添加:
version: "2"
services:
cloudera:
image: cloudera/quickstart:latest
command: /usr/bin/docker-quickstart
privileged: true
hostname: quickstart.cloudera