GithubHelp home page GithubHelp logo

pidockerap's Introduction

piDockerAP

How to create a docker container as wifi access point. Target is Raspberry Pi and tested on 4B and Zero W.

Container is based on Alpine and contains hostapd and dnsmasq.

Reason for this small project is to create a mesh network based on batman-adv in the background on the actual hosts and adding AP's as dockers above. To make this work on Raspberry you need a second wifi adapter. In this project a mix has been used of an old Belkin adapter and more modern ALFA AWUS036ACH.

Prequisites

  1. Raspberry Pi OS, (most proably other linux dists will work also but not tested).
  2. Docker installed

Installation

  1. clone repo: git clone https://github.com/Torkelen/piDockerAP.git
  2. enter piDockerAP: cd piDockerAP
  3. Copy piDockerAP.conf.tpl to piDockerAP.conf: cp piDockerAP.conf.tpl piDockerAP.conf
  4. Edit piDockerAP.conf with needed settings like container names, ip, wifi etc
  5. Create image by executing: docker build -t pidockerap . Currently running Alpine:3.12, latest has some problems. Feel free to change to other dist in Dockerfile.
  6. You can check that your images exists with: docker image ls
  7. Create and/or start you docker with: ./runPiDocker.sh First run will create your docker container and using settings from your conf-file and start it. Container will not restart automatically after reboot. That is not possible since wlan interface needs to added to existing process for the container. To start after reboot add ./runPiDocker.sh in autostart like /etc/rc.local

Tips and trix

docker exec -it "your container" bash to view your container and work with it. use batctl and batman-adv to create a mesh network as backend for your AP's.

pidockerap's People

Contributors

torkelen avatar

Watchers

 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.