Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MountFlags private can't implement the goal.
- [root@kolla opt]# docker run -it -v /opt:/mnt:private centos:latest
- [root@39819686c78b /]# cd /mnt/
- [root@39819686c78b mnt]# ls
- abc host-abc kolla.git kolla.git.tar.bz2
- [root@39819686c78b mnt]# touch container
- [root@39819686c78b mnt]# ls
- abc container host-abc kolla.git kolla.git.tar.bz2
- [root@39819686c78b mnt]#
- open another terminal on the kolla server:
- [root@kolla opt]# ls
- abc container host-abc kolla.git kolla.git.tar.bz2
- [root@kolla opt]# docker info
- Containers: 13
- Running: 2
- Paused: 0
- Stopped: 11
- Images: 497
- Server Version: 1.13.1
- Storage Driver: btrfs
- Build Version: Btrfs v4.4.1
- Library Version: 101
- Logging Driver: json-file
- Cgroup Driver: cgroupfs
- Plugins:
- Volume: local
- Network: bridge host macvlan null overlay
- Swarm: inactive
- Runtimes: runc
- Default Runtime: runc
- Init Binary: docker-init
- containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
- runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
- init version: 949e6fa
- Security Options:
- seccomp
- Profile: default
- Kernel Version: 3.10.0-514.6.1.el7.x86_64
- Operating System: CentOS Linux 7 (Core)
- OSType: linux
- Architecture: x86_64
- CPUs: 1
- Total Memory: 9.608 GiB
- Name: kolla.genomics.cn
- ID: ZZGG:SI7T:KZKX:2Y6F:TLSH:YPD7:ZORP:PKAL:QOHA:YJFZ:AJTP:T7RD
- Docker Root Dir: /var/lib/docker
- Debug Mode (client): false
- Debug Mode (server): false
- Registry: https://index.docker.io/v1/
- Experimental: false
- Insecure Registries:
- 192.168.103.14:4000
- 127.0.0.0/8
- Live Restore Enabled: false
- [root@kolla opt]# docker info | grep -i mount
- [root@kolla opt]# uname -a
- 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
- TASK [prechecks : Checking free port for Rsync] ********************************
- skipping: [kode4]
- skipping: [kode5]
- 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"}
- [root@kolla docker]# nsenter --mount=/proc/$(cat /var/run/docker.pid)/ns/mnt findmnt -o TARGET,PROPAGATION
- TARGET PROPAGATION
- / shared
- ├─/sys shared
- │ ├─/sys/kernel/security shared
- │ ├─/sys/fs/cgroup shared
- │ │ ├─/sys/fs/cgroup/systemd shared
- │ │ ├─/sys/fs/cgroup/hugetlb shared
- │ │ ├─/sys/fs/cgroup/freezer shared
- │ │ ├─/sys/fs/cgroup/pids shared
- │ │ ├─/sys/fs/cgroup/cpuset shared
- │ │ ├─/sys/fs/cgroup/net_cls,net_prio shared
- │ │ ├─/sys/fs/cgroup/devices shared
- │ │ ├─/sys/fs/cgroup/cpu,cpuacct shared
- │ │ ├─/sys/fs/cgroup/perf_event shared
- │ │ ├─/sys/fs/cgroup/blkio shared
- │ │ └─/sys/fs/cgroup/memory shared
- │ ├─/sys/fs/pstore shared
- │ ├─/sys/fs/selinux shared
- │ ├─/sys/kernel/debug shared
- │ └─/sys/kernel/config shared
- ├─/proc shared
- │ └─/proc/sys/fs/binfmt_misc shared
- ├─/dev shared
- │ ├─/dev/shm shared
- │ ├─/dev/pts shared
- │ ├─/dev/mqueue shared
- │ └─/dev/hugepages shared
- ├─/run shared
- │ ├─/run/user/0 shared
- │ └─/run/docker/netns/f225a410ed99 shared
- ├─/var/lib/docker shared
- │ ├─/var/lib/docker/btrfs private
- │ └─/var/lib/docker/containers/fbb4c94d42d9842692f86f6c5cecd0027d0d043701d5080315fc42906809210a/shm shared
- ├─/boot shared
- └─/mnt shared
- [root@kolla docker]#
- [root@kolla docker]# systemctl show docker.service | grep MountFlags
- MountFlags=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement