Use fuse-overlayfs to mount/unmount overlayfs in Python
Project description
Python wrapper of fuse-overlayfs
fuse-overlayfs is an implementation of overlay+shiftfs in FUSE for rootless containers, and the command name. See this project's homepage.
Install
Just run the command: pip install fuse-overlayfs.
Or you can download and install the wheel file from release page manually.
Usage
A simple mount:
>>> from fuseoverlayfs import FuseOverlayFS
>>> fuse_overlayfs = FuseOverlayFS.init()
>>> mnt = '/path/to/mountpoint'
>>> lowerdirs = ['/path/to/lowerdir1', '/path/to/lowerdir2']
>>> upperdir = '/path/to/upperdir'
>>> workdir = '/path/to/workdir'
>>> fuse_overlayfs.mount(mnt, lowerdirs, upperdir=upperdir, workdir=workdir)
>>>
A read-only mount, just remove argument upperdir and workdir:
>>> from fuseoverlayfs import FuseOverlayFS
>>> fuse_overlayfs = FuseOverlayFS.init()
>>> mnt = '/path/to/another/mountpoint'
>>> lowerdirs = ['/path/to/lowerdir3', '/path/to/lowerdir4']
>>> fuse_overlayfs.mount(mnt, lowerdirs)
>>>
For more helpful information, see docstrings:
>>> from fuseoverlayfs import FuseOverlayFS
>>> help(FuseOverlayFS.mount)
>>> help(FuseOverlayFS.unmount)
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fuse-overlayfs-0.1.0.tar.gz.
File metadata
- Download URL: fuse-overlayfs-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
928b7e5d2eb617350913842a9a7efd2d435217767e36a9c7aeb371fcf0a686a6
|
|
| MD5 |
1fa1286de1376016bd7ed2d2cec8ef19
|
|
| BLAKE2b-256 |
294e137d959c51c1cd88eb6eb3561827f67280b6261e4f7659b38a515c39601b
|
File details
Details for the file fuse_overlayfs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fuse_overlayfs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80a897e4c750bf53ce2031bf5ba2c19f36da03c5f6189efc0788a91b29700b4e
|
|
| MD5 |
580b4dbcef904b3753f3f59f7efabeb5
|
|
| BLAKE2b-256 |
23fb21372ee1d295995449d288938afbc746e7d63fb11609b64b7f96cbd03dd8
|