Coder Social home page Coder Social logo

xros-over-sshfs's Introduction

xros-over-sshfs

By run xros-over-sshfs and mount it's /containers via sshfs on docker host, You will be able to access running docker containers files easily.

Run new containers and access their files:

# run xrso-over-sshfs
$ cd xros-over-sshfs
$ docker-compose up

# to access containers file via `xros-over-sshfs:/containers`
$ sshfs [email protected]:/containers /path/to/containers
$ sudo docker run --rm -it -d --name hal9000 alpine
$ cat /path/to/containers/hal9000/etc/os-release
$ sudo docker run --rm -it -d --name sal9000 debian
$ cat /path/to/containers/sal9000/etc/os-release

Usage

version: '2'
services:
  xros-over:
    image: hankei6km/xros-over-sshfs:latest
    hostname: xros-over
    container_name: xros-over
    tty: false
    privileged: true
    command: ["bash", "/tmp/start.sh"]
    # uncomment to customize by environment vars.
    # environment:
    #   - ROOTPW=<ultra supuer secret>
    #   - BUMP_AT_CONTAINER_AWAKENS=0
    #   - AUTOFS_TIMEOUT=300
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

Customize

Effective environment variables.

  • ROOTPW: root password
  • BUMP_AT_CONTAINER_AWAKENS: 0(default) - Mount container at to access to container's files. 1 - Mount automatically at the container wakens(run start etc.).
  • AUTOFS_TIMEOUT: set timeout to autofs.

Security

It will be possible to access each running containers files and docker host connected, be careful at launch xros-over-sshfs.

SSH host keys

No SSH host keys was included on xros-over-sshfs image. SSH host keys are generated at launch xros-over-sshfs container.

License

Copyright (c) 2018 hankei6km

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

xros-over-sshfs's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.