This is an automated email from the ASF dual-hosted git repository.
xxyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/master by this push:
new f14a25d Update the documentation to specify a given container name
for docker run/exec commands
f14a25d is described below
commit f14a25dccf4848cbd2de780ce5d81e77a29220b4
Author: yanghua <[email protected]>
AuthorDate: Mon Sep 14 17:34:06 2020 +0800
Update the documentation to specify a given container name for docker
run/exec commands
---
README.md | 1 +
docker/README.md | 14 ++++++++++++--
docker/run_container.sh | 1 +
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 805fcf4..bc6882e 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,7 @@ docker run -d \
-p 8032:8032 \
-p 8042:8042 \
-p 16010:16010 \
+ --name apache-kylin-standalone \
apachekylin/apache-kylin-standalone:3.1.0
```
You can get more detail about this docker image in [kylin
website](http://kylin.apache.org/docs/install/kylin_docker.html)
diff --git a/docker/README.md b/docker/README.md
index 7fee598..dee47b0 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -28,6 +28,7 @@ docker run -d \
-p 8032:8032 \
-p 8042:8042 \
-p 16010:16010 \
+--name apache-kylin-standalone \
apachekylin/apache-kylin-standalone:3.1.0
```
@@ -63,7 +64,16 @@ After about 1 to 2 minutes, all the services should be
started. At the Kylin log
In the "Model" tab, you can click "Build" to build the two sample cubes. After
the cubes be built, try some queries in the "Insight" tab.
-If you want to login into the Docker container, run "docker ps" to get the
container id:
+If you want to login into the Docker container, run "docker exec -it
apache-kylin-standalone bash" to login it with bash:
+
+```
+> docker exec -it apache-kylin-standalone bash
+[root@c15d10ff6bf1 admin]# ls
+apache-hive-1.2.1-bin apache-maven-3.6.1 first_run
hbase-1.1.2 kafka_2.11-1.1.1
+apache-kylin-3.0.0-alpha2-bin-hbase1x entrypoint.sh hadoop-2.7.0
jdk1.8.0_141 spark-2.3.1-bin-hadoop2.6
+```
+
+Or you can run "docker ps" to get the container id:
```
> docker ps
@@ -71,7 +81,7 @@ CONTAINER ID IMAGE
COMMAND
c15d10ff6bf1 apachekylin/apache-kylin-standalone:3.1.0
"/home/admin/entrypo…" 55 minutes ago Up 55 minutes
0.0.0.0:7070->7070/tcp, 0.0.0.0:8032->8032/tcp, 0.0.0.0:8042->8042/tcp,
0.0.0.0:8088->8088/tcp, 0.0.0.0:50070->50070/tcp, 0.0.0.0:16010->16010/tcp
romantic_moser
```
-Then run "docker -it <container id> bash" to login it with bash:
+Then run "docker exec -it <container id> bash" to login it with bash:
```
> docker exec -it c15d10ff6bf1 bash
diff --git a/docker/run_container.sh b/docker/run_container.sh
index 3a3d562..bd2936b 100755
--- a/docker/run_container.sh
+++ b/docker/run_container.sh
@@ -24,4 +24,5 @@ docker run -d \
-p 8042:8042 \
-p 16010:16010 \
-p 8998:8998 \
+--name apache-kylin-standalone \
apachekylin/apache-kylin-standalone:3.1.0