-
Bug
-
Resolution: Done
-
Major
-
0.1
-
None
COPY ./zoo.cfg $ZK_HOME/conf/zoo.cfg
This statement add zoo.cfg as root ownership, but not zookeeper. Maybe it's a bug belongs to Docker.
-------------------------------------------
Here's the container started as standalone mode, which doesn't need to modify $ZK_HOME/conf/zoo.cfg file, and its ownership is root.
docker exec -it docker_zookeeper_1 bash zookeeper@dd50ce8bbee3:~$ cd /zookeeper/conf zookeeper@dd50ce8bbee3:~/conf$ pwd /zookeeper/conf zookeeper@dd50ce8bbee3:~/conf$ ls -la total 24 drwxr-xr-x 2 zookeeper zookeeper 4096 May 3 11:32 . drwxr-xr-x 15 zookeeper zookeeper 4096 Apr 14 19:27 .. -rw-r--r-- 1 zookeeper zookeeper 535 Feb 20 2014 configuration.xsl -rw-r--r-- 1 zookeeper zookeeper 2045 May 3 11:32 log4j.properties -rw-r--r-- 1 root root 1125 Apr 14 19:27 zoo.cfg -rw-r--r-- 1 zookeeper zookeeper 922 Feb 20 2014 zoo_sample.cfg