mount-point

kubernetes secret items not mounted as file path

孤街浪徒 提交于 2020-02-04 17:05:33
问题 I have the following yaml: volumeMounts: - name: app-secret mountPath: /app readOnly: true volumes: - name: app-secret secret: secretName: app-secret items: - key: app-secret.json path: appsettings.secret.json I expect the secret is mounted on /app/appsettings.secret.json but it isn't. I don't know where it is mounted and the container crashes and I don't have a chance to kubectl exec into the container to inspect where the secret is mounted. My guess is that it wipes out the content of /app

kubernetes secret items not mounted as file path

时间秒杀一切 提交于 2020-02-04 17:04:35
问题 I have the following yaml: volumeMounts: - name: app-secret mountPath: /app readOnly: true volumes: - name: app-secret secret: secretName: app-secret items: - key: app-secret.json path: appsettings.secret.json I expect the secret is mounted on /app/appsettings.secret.json but it isn't. I don't know where it is mounted and the container crashes and I don't have a chance to kubectl exec into the container to inspect where the secret is mounted. My guess is that it wipes out the content of /app

Ansible: Detect if a Linux filesystem is mounted read-only

偶尔善良 提交于 2020-01-06 12:41:16
问题 I'm trying to detect if a particular filesystem is mounted read-only or read-write on Linux (Ubuntu 16.04). Using the stat module won't work because it always returns the posix permissions regardless of the actual ability to write into the directory. I'm able to accomplish this with the rather intrusive and cumbersome code below, which attempts to create a dot file. I'd appreciate a cleaner and more elegant alternative, that can also detect if the directory is not a mount point (which would

Create volume with docker volume with a custom Mountpoint

独自空忆成欢 提交于 2020-01-03 02:11:12
问题 I need to create a volume with "docker volume" with a personal Mountpoint (mountpoint="/my/path/ not /var/lib/docker...) but i can't use plugin like local-persist docker volume create -d local-persist -o mountpoint=/data/images --name=images i need something like this but without plugin, maybe it can be done with --opt= and somethig after that, but i'm new at docker and linux. I hope someone can help me, just pay attention: i need "docker volume create" not something that let me use personal

Get partition name from drive letter and vice versa

给你一囗甜甜゛ 提交于 2019-12-13 18:23:41
问题 The program I'm working on needs to access removable drives. Normally this wouldn't be a problem, because the mountpoint should stay the same (e.g.: On Ubuntu my phone's SD card gets mounted at /media/sebastian/GT-S5830/ ) But on Windows there are the drive letters, which can vary. (Same phone: Once E:\ , after plugging in while camera was mounted at E: , it became F: and stayed.) So I want to solve this by not saving the drive letter, but the partition name. E.g.: When setting up, the path E

Retrieve mount point of WPD device

做~自己de王妃 提交于 2019-12-11 03:15:09
问题 I've worked with WPD API for a while now, and I seem to run in to problem after problem. Once I fix one problem, something else pops up. But hey, that's life. I've been trying to determine if a WPD device is a storage device or a phone or whatever. Turns out, devices such as iPhone are not set to be recognized as a phone, but instead as a generic device in terms of WPD_DEVICE_TYPE . But, it is presented to Windows as a storage device. When connecting external harddrives, SD memory card

User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)

无人久伴 提交于 2019-12-08 01:59:54
问题 From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to C:\mounted_XPEmbedded\ ). (This is an administrative utility that runs on the Vista workstation that maintains files on the XP Embedded workstation, which is part of a larger device.) I can see the XP Embedded computer from the Vista workstation. For example, I can :

bindfs - Doesn't work for folder inside “/proc”

放肆的年华 提交于 2019-12-07 15:53:42
问题 Bindfs doesn't work for folder inside "/proc"... [root@some_host some_folder]# bindfs --map=root/<MY_USER> "/proc/<SOME_PID>/<SOME_FOLDER>" "/home/<MY_USER>/<SOME_FOLDER>" Failed to resolve source directory `/proc/<SOME_PID>/<SOME_FOLDER>': No such file or directory [root@some_host some_folder]# ls "/proc/<SOME_PID>/<SOME_FOLDER>" some_file Why? Thanks! UPDATE: Example with Docker container... I ended up finding out that for some reason this command... sudo bindfs --map=root/eduardo "/proc/$

User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)

≡放荡痞女 提交于 2019-12-06 06:07:44
From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to C:\mounted_XPEmbedded\ ). (This is an administrative utility that runs on the Vista workstation that maintains files on the XP Embedded workstation, which is part of a larger device.) I can see the XP Embedded computer from the Vista workstation. For example, I can ::getnameinfo() to resolve the XP Embedded computer's name from its IP address. However, all calls to

bindfs - Doesn't work for folder inside “/proc”

为君一笑 提交于 2019-12-06 02:30:46
Bindfs doesn't work for folder inside "/proc"... [root@some_host some_folder]# bindfs --map=root/<MY_USER> "/proc/<SOME_PID>/<SOME_FOLDER>" "/home/<MY_USER>/<SOME_FOLDER>" Failed to resolve source directory `/proc/<SOME_PID>/<SOME_FOLDER>': No such file or directory [root@some_host some_folder]# ls "/proc/<SOME_PID>/<SOME_FOLDER>" some_file Why? Thanks! UPDATE: Example with Docker container... I ended up finding out that for some reason this command... sudo bindfs --map=root/eduardo "/proc/$(docker inspect --format {{.State.Pid}} 255d)/root" "/home/eduardo/Data/Temp/20180329.1/root" ... make