该项目将允许您在Raspberry Pi上运行可移植的接入点,以利用Docker容器。
进一步的参考和解释:
https://fwhibbit.es/en/automatic-access-point-with-docker-and-and-raspberry-pi- Zero-W
在Raspberry Pi零W上进行了测试。
Access point configurations
您可以在confs/hostapd_confs/上自定义文件密码和其他配置。您还可以在此处添加自己的Hostapd配置文件。
Management using plain docker
add-rm用于挥发性容器。
Create and run a container with default (Open) configuration (stop with Ctrl+C)
docker run --name autowlan_open --cap-add=NET_ADMIN --network=host autowlan
Create and run a container with WEP configuration (stop with Ctrl+C)
docker run --name autowlan_wep --cap-add=NET_ADMIN --network=host -v $(pwd)/confs/hostapd_confs/wep.conf:/etc/hostapd/hostapd.conf autowlan
Create and run a container with WPA2 configuration (stop with Ctrl+C)
docker run --name autowlan_wpa2 --cap-add=NET_ADMIN --network=host -v $(pwd)/confs/hostapd_confs/wpa2.conf:/etc/hostapd/hostapd.conf autowlan
Stop a running container
docker stop autowlan_{open|wep|wpa2}
Management using docker-compose
Create and run container (stop with Ctrl+C)
docker-compose -f fichero_yml up
Create and run container in the background
docker-compose -f fichero_yml up
Stop a container in the background
docker-compose -f fichero_yml up -d
Read logs of a container in the background
docker-compose -f fichero_yml down 010-1010 docker-compose -f fichero_yml logs