本站支持搜索的镜像仓库:Docker Hub、gcr.io、ghcr.io、quay.io、k8s.gcr.io、registry.gcr.io、elastic.co、mcr.microsoft.com
 and letsencrypt (used by certbot to issue https certs on this address.)
To get started, run the following command:
curl -L [***] -o setup.sh sudo bash setup.sh
Note: Facing errors while installation? Please read the FAQ.
Setup on docker-compose is suitable for single-server setup requirements. It is quicker and requires less prior knowledge about openwisp & networking.
Setup on kubernetes is complex and requires prior knowledge about linux systems, kubernetes, docker & openwisp. However, it provides scalability for very large networks.
make develop, when the containers are ready, you can test them out by going to the domain name of the modules.admin.dashboard.openwisp.org, api.openwisp.org and radius.openwisp.org..env to your hosts file,
example: bash -c 'echo "127.0.0.1 dashboard.openwisp.org api.openwisp.org radius.openwisp.org" >> /etc/hosts'docker-openwisp,
please use the makefile options.You can build with your own python package by creating a file named .build.env in the root of the repository, then set the variables inside .build.env file in <variable>=<value> format. Multiple variable should be separated in newline. These are the variables that can be changed:
OPENWISP_FIRMWARE_SOURCEOPENWISP_CONTROLLER_SOURCEOPENWISP_NOTIFICATION_SOURCEOPENWISP_TOPOLOGY_SOURCEOPENWISP_RADIUS_SOURCEOPENWISP_USERS_SOURCEOPENWISP_UTILS_SOURCEDJANGO_SOURCEDJANGO_NETJSONCONFIG_SOURCEDJANGO_X509_SOURCEFor example, if you want to supply your own django and openwisp-controller source, your .build.env should be written like this:
DJANGO_SOURCE=django==2.1 OPENWISP_CONTROLLER_SOURCE=[***]<username>/openwisp-api/tarball/master
Right now, this is only tentative guide. Errata may exist. Please report errors on the gitter channel.
openwisp-dashboard: You cannot disable the openwisp-dashboard. It is the heart of OpenWISP and performs core functionalities.openwisp-api: You cannot disable the openwisp-api. It is required for interacting with your devices.openwisp-websocket: Removing this container will cause the system to not able to update real-time location for mobile devices.If you want to disable a service, you can simply remove the container for that service, however, there are additional steps for some images:
openwisp-network-topology: Set the USE_OPENWISP_TOPOLOGY variable to False.openwisp-firmware-upgrader : Set the USE_OPENWISP_FIRMWARE variable to False.openwisp-radius : Set the USE_OPENWISP_RADIUS variable to False.openwisp-postgres: If you are using a seperate database instance,
open***, freeradius, celerybeat, celery, websocket, radius, api, dashboard.DB_SSLMODE, DB_SSLKEY, DB_SSLCERT, DB_SSLROOTCERT.600 and owned by root:root.<DB_NAME>.openwisp-postfix:
You can run tests either with geckodriver (firefox) or chromedriver (chromium). Chromium is preferred as it checks for console log errors as well.
Setup driver for selenium:
Setup chromedriver
sudo apt --yes install chromiumchromium --version[***]$PATH. (example: /usr/bin/)Setup geckodriver
sudo apt --yes install firefoxfirefox --version[***]$PATH. (example: /usr/bin/)Install selenium: python3 -m pip install selenium
(Optional) Configure: open tests/config.json and configure variables as per your requirement, options are:
driver : Name of driver to use for tests, "chromium" or "firefox" logs : print container's logs if an error occurs. logs_file : Location of the log file for saving logs generated for tests. headless : Run selenium chrome driver in headless mode load_init_data : Flag for running tests/data.py, only needs to be done once after database creation app_url : URL to reach the admin dashboard username : username for logging in admin dashboard password : password for logging in admin dashboard services_max_retries : Maximum number of retries to check if services are running services_delay_retries : Delay time (in seconds) to each retries for checking if services are running
Run tests: make runtests
Most commonly used:
start<USER=docker-username> <TAG=image-tag>: Start OpenWISP containers on your server.pull<USER=docker-username> <TAG=image-tag>: Pull Images from registry.stop: Stop make containers on your server.develop: Bundles all the commands required to build the images and run containers.runtests: Run testcases to ensure all the services are working.clean: Aggressively purge all the containers, images, volumes & networks related to docker-openwisp.Other options:
publish <USER=docker-username> <TAG=image-tag>: Build, test and publish images.python-build: Generate a random django secret and set it in the .env file.nfs-build: Build openwisp-nfs server image.base-build: Build openwisp-base image. The base image is used in other OpenWISP images.compose-build: (default) Build OpenWISP images for development.develop-runtests: Similar to runtests, it runs the testcases except doesn't stop the containers after running the tests which maybe desired for debugging & analyzing failing container's logs.免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录方式配置轩辕镜像加速服务,包含7个详细步骤
在 Linux 系统上配置轩辕镜像源,支持主流发行版
在 Docker Desktop 中配置轩辕镜像加速,适用于桌面系统
在 Docker Compose 中使用轩辕镜像加速,支持容器编排
在 k8s 中配置 containerd 使用轩辕镜像加速
在宝塔面板中配置轩辕镜像加速,提升服务器管理效率
在 Synology 群晖NAS系统中配置轩辕镜像加速
在飞牛fnOS系统中配置轩辕镜像加速
在极空间NAS中配置轩辕镜像加速
在爱快ikuai系统中配置轩辕镜像加速
在绿联NAS系统中配置轩辕镜像加速
在威联通NAS系统中配置轩辕镜像加速
在 Podman 中配置轩辕镜像加速,支持多系统
配置轩辕镜像加速9大主流镜像仓库,包含详细配置步骤
无需登录即可使用轩辕镜像加速服务,更加便捷高效
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429