-
Bug
-
Resolution: Done
-
Major
-
0.1
-
None
-
$ docker info
Containers: 3
Running: 0
Paused: 0
Stopped: 3
Images: 21
Server Version: 1.11.1
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 28
Dirperm1 Supported: true
Logging Driver: json-file
Plugins:
Volume: local
Network: host bridge null
Kernel Version: 4.4.8-boot2docker
Operating System: Boot2Docker 1.11.1 (TCL 7.0); HEAD : 7954f54 - Wed Apr 27 16:36:45 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.9 MiB
Name: DataPipelineDemo
ID: OEYF:XBOB:OAXC:FGZR:ATGB:EO5Q:EB4H:OCUP:2AL7:2HB5:MXN7:VBPA
Debug mode (server): true
File Descriptors: 19
Goroutines: 47
System Time: 2016-05-03T12:39:10.039280547Z
EventsListeners: 0
Init SHA1:
Init Path:
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: mvj3
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox$ docker info Containers: 3 Running: 0 Paused: 0 Stopped: 3 Images: 21 Server Version: 1.11.1 Storage Driver: aufs Root Dir: /mnt/sda1/var/lib/docker/aufs Backing Filesystem: extfs Dirs: 28 Dirperm1 Supported: true Logging Driver: json-file Plugins: Volume: local Network: host bridge null Kernel Version: 4.4.8-boot2docker Operating System: Boot2Docker 1.11.1 (TCL 7.0); HEAD : 7954f54 - Wed Apr 27 16:36:45 UTC 2016 OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 995.9 MiB Name: DataPipelineDemo ID: OEYF:XBOB:OAXC:FGZR:ATGB:EO5Q:EB4H:OCUP:2AL7:2HB5:MXN7:VBPA Debug mode (server): true File Descriptors: 19 Goroutines: 47 System Time: 2016-05-03T12:39:10.039280547Z EventsListeners: 0 Init SHA1: Init Path: Docker Root Dir: /mnt/sda1/var/lib/docker Username: mvj3 Registry: https://index.docker.io/v1/ Labels: provider=virtualbox
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