Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install docker and start openwrt

Shulou Source: shulou.com Published: 2022-06-01 03:45:15 10月27日 Update

This article mainly introduces the "openwrt how to install docker and start" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "openwrt how to install docker and start" article can help you solve the problem.

OpenWRT

OpenWrt can be described as an embedded Linux distribution. (mainstream router firmware has dd-wrt,tomato,openwrt,padavan four categories) compared to a single, static system, OpenWrt package Management provides a fully writable file system, from the selection and configuration provided by the application vendor, and allows you to customize the device to suit any application.

For developers, OpenWrt uses frameworks to build applications without having to build a complete firmware to support them; for users, this means that they have the ability to be fully customized and can use the device in an unprecedented way.

Download docker and dockerd in the package

You can also download the ipk file and install it.

After successful installation, start xshell and connect to openwrt

Execute / etc/init.d/dockerd to start the daemon service of docker

Execute if you want dockerd to start itself.

Ln-s / etc/init.d/dockerd / etc/rc.d/S100docker

Establish a soft connection and start the docker service when the system loads

The following is the command to pull the image of Azure Dragon panel and create a container

Docker run-dit\-v / mnt/mmcblk2p4/ql/config:/ql/config\-v / mnt/mmcblk2p4/ql/log:/ql/log\-v / mnt/mmcblk2p4/ql/db:/ql/db\-v / mnt/mmcblk2p4/ql/scripts:/ql/scripts\-v / mnt/mmcblk2p4/ql/repo:/ql/repo\-v / mnt/mmcblk2p4/ql/raw:/ql/raw\-v / mnt/mmcblk2p4/ql/jbot:/ Ql/jbot\-network host\-e ENABLE_HANGUP=true\-e ENABLE_TG_BOT=true\-e ENABLE_WEB_PANEL=true\-- name qinglong\-- hostname qinglong\-- restart always\ whyour/qinglong:latest

After the container runs, the browser opens Azure Dragon panel ip:5700.

View the configuration file and modify the required parameters (prefix, whether to automatically generate scheduled tasks during the pull script, etc.)

Execute the command docker exec-it qinglong ql repo https:*.git or docker exec-it qinglong ql raw https:**.gee in xshell

Or add ql command execution to the scheduled task

Check jdCookies.js when the script executes errors. The custom blacklist can be operated in jdCookies.js (re-pulling the library will overwrite the modified content). Note that the pull command sets the jdCookies.js and other dependencies to the blacklist.

Execute the following command to initialize after the pull script is completed, otherwise there will be a lack of dependencies

Docker exec-it qinglong bash-c "cd scripts & & npm I"

Lack of module during script execution, such as png-js or md5

Command installation depends on docker exec-it qinglong bash-c "cd scripts & & npm I-S png-js" docker exec-it qinglong bash-c "cd scripts & & npm I-S jsdom" about "how to install docker and start openwrt". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Commands scripts applications files knowledge programs systems processes applications tasks content firmware containers industry equipment Azure Dragon panels blacklists blacknames services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Information Linux Huawei MySQL