Skip to main content

Mount a Running Docker Container File Sytem via FUSE

Project description

Mount a Running Docker Container File Sytem via FUSE.

  • No requirement to install additional agents to container side. it’s only required to have permitted to docker exec command.

  • Docker container xros-over-sshfs that mount other containers file system automatically by XrosFS with autofs and sshfs is released.

Requirements

Docker Host Side

  • Python 3.5 or later

  • FUSE 2.6 (or later)

  • Permitted to execute $ docker exec

Docker Container Side

  • Shell (ash or bash) and some commands(test, stat, dd base64 etc.) (Usually, they are already installed plain image of alpine, debian etc.)

Installation

pip install xrosfs

Usage

Mount / of container1 to ~/mnt.

$ xrosfs container1:/ ~/mnt

In above step, xrosfs connect to container1 as root user. Pass user@container1:/ to xrosfs, if you want to connect as other users.

Known Issues

  • Can’t access to file that had \n included filename.

  • Bad response time in operates.

  • Some operations methods are not full implemented yet(flush(fsync) utimens etc.).

License

Copyright (c) 2018 hankei6km

Licensed under the MIT License. See LICENSE.txt in the project root.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xrosfs-0.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xrosfs-0.1.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file xrosfs-0.1.1.tar.gz.

File metadata

  • Download URL: xrosfs-0.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xrosfs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e77efa1424fda3cff2c7fffc892f7577ee06bacd6f8271693ac5c01053aaed03
MD5 3c132971929fbabde72e000e11ff3dde
BLAKE2b-256 0a92c0e17e0b63d0316a54e7e1959696126bffba7615f6bbc28e019e59a91b14

See more details on using hashes here.

File details

Details for the file xrosfs-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xrosfs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e14cef23231b6df95307e0bc7f287d39d7431aaf2553d03e2b7964bfb78d5f0b
MD5 e9acab056c17dd1458b2090de24a232f
BLAKE2b-256 93ad47f83364a0dc3def2b9932bd26f70ea6479434b6de686904e09f8efe949d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page