Advertisement
margin

MountFlags

Feb 20th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  1. MountFlags private can't implement the goal.
  2.  
  3. [root@kolla opt]# docker run -it -v /opt:/mnt:private centos:latest
  4. [root@39819686c78b /]# cd /mnt/
  5. [root@39819686c78b mnt]# ls
  6. abc host-abc kolla.git kolla.git.tar.bz2
  7. [root@39819686c78b mnt]# touch container
  8. [root@39819686c78b mnt]# ls
  9. abc container host-abc kolla.git kolla.git.tar.bz2
  10. [root@39819686c78b mnt]#
  11.  
  12. open another terminal on the kolla server:
  13. [root@kolla opt]# ls
  14. abc container host-abc kolla.git kolla.git.tar.bz2
  15.  
  16.  
  17. [root@kolla opt]# docker info
  18. Containers: 13
  19. Running: 2
  20. Paused: 0
  21. Stopped: 11
  22. Images: 497
  23. Server Version: 1.13.1
  24. Storage Driver: btrfs
  25. Build Version: Btrfs v4.4.1
  26. Library Version: 101
  27. Logging Driver: json-file
  28. Cgroup Driver: cgroupfs
  29. Plugins:
  30. Volume: local
  31. Network: bridge host macvlan null overlay
  32. Swarm: inactive
  33. Runtimes: runc
  34. Default Runtime: runc
  35. Init Binary: docker-init
  36. containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
  37. runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
  38. init version: 949e6fa
  39. Security Options:
  40. seccomp
  41. Profile: default
  42. Kernel Version: 3.10.0-514.6.1.el7.x86_64
  43. Operating System: CentOS Linux 7 (Core)
  44. OSType: linux
  45. Architecture: x86_64
  46. CPUs: 1
  47. Total Memory: 9.608 GiB
  48. Name: kolla.genomics.cn
  49. ID: ZZGG:SI7T:KZKX:2Y6F:TLSH:YPD7:ZORP:PKAL:QOHA:YJFZ:AJTP:T7RD
  50. Docker Root Dir: /var/lib/docker
  51. Debug Mode (client): false
  52. Debug Mode (server): false
  53. Registry: https://index.docker.io/v1/
  54. Experimental: false
  55. Insecure Registries:
  56. 192.168.103.14:4000
  57. 127.0.0.0/8
  58. Live Restore Enabled: false
  59. [root@kolla opt]# docker info | grep -i mount
  60. [root@kolla opt]# uname -a
  61. Linux kolla.genomics.cn 3.10.0-514.6.1.el7.x86_64 #1 SMP Wed Jan 18 13:06:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  62.  
  63.  
  64.  
  65.  
  66. TASK [prechecks : Checking free port for Rsync] ********************************
  67. skipping: [kode4]
  68. skipping: [kode5]
  69. fatal: [kode0]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'ipv4'\n\nThe error appears to have been in '/opt/kolla.git/ansible/roles/prechecks/tasks/port_checks.yml': line 476, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Checking free port for Rsync\n ^ here\n"}
  70.  
  71.  
  72.  
  73. [root@kolla docker]# nsenter --mount=/proc/$(cat /var/run/docker.pid)/ns/mnt findmnt -o TARGET,PROPAGATION
  74. TARGET PROPAGATION
  75. / shared
  76. ├─/sys shared
  77. │ ├─/sys/kernel/security shared
  78. │ ├─/sys/fs/cgroup shared
  79. │ │ ├─/sys/fs/cgroup/systemd shared
  80. │ │ ├─/sys/fs/cgroup/hugetlb shared
  81. │ │ ├─/sys/fs/cgroup/freezer shared
  82. │ │ ├─/sys/fs/cgroup/pids shared
  83. │ │ ├─/sys/fs/cgroup/cpuset shared
  84. │ │ ├─/sys/fs/cgroup/net_cls,net_prio shared
  85. │ │ ├─/sys/fs/cgroup/devices shared
  86. │ │ ├─/sys/fs/cgroup/cpu,cpuacct shared
  87. │ │ ├─/sys/fs/cgroup/perf_event shared
  88. │ │ ├─/sys/fs/cgroup/blkio shared
  89. │ │ └─/sys/fs/cgroup/memory shared
  90. │ ├─/sys/fs/pstore shared
  91. │ ├─/sys/fs/selinux shared
  92. │ ├─/sys/kernel/debug shared
  93. │ └─/sys/kernel/config shared
  94. ├─/proc shared
  95. │ └─/proc/sys/fs/binfmt_misc shared
  96. ├─/dev shared
  97. │ ├─/dev/shm shared
  98. │ ├─/dev/pts shared
  99. │ ├─/dev/mqueue shared
  100. │ └─/dev/hugepages shared
  101. ├─/run shared
  102. │ ├─/run/user/0 shared
  103. │ └─/run/docker/netns/f225a410ed99 shared
  104. ├─/var/lib/docker shared
  105. │ ├─/var/lib/docker/btrfs private
  106. │ └─/var/lib/docker/containers/fbb4c94d42d9842692f86f6c5cecd0027d0d043701d5080315fc42906809210a/shm shared
  107. ├─/boot shared
  108. └─/mnt shared
  109. [root@kolla docker]#
  110.  
  111.  
  112. [root@kolla docker]# systemctl show docker.service | grep MountFlags
  113. MountFlags=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement