# Docker For OpenWRT **Repository Path**: linrenkang-git/Docker-For-OpenWRT ## Basic Information - **Project Name**: Docker For OpenWRT - **Description**: No description available - **Primary Language**: 其他 - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2019-09-19 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Docker for OpenWRT #### 特别说明 初期源码来自https://gitlab.com/mcbridematt/openwrt-container-feed/tree/master #### 编译 1. 克隆源码,放在package/docker下 `git clone https://gitee.com/wangfuying_admin/Docker-For-OpenWRT.git docker` 2. `make menuconfig` 3. 勾选Container->docker-binary-x86_64 ![1562316300876](./img/1562316300876.png) 4. `make` #### 使用 - 首次使用,修改/etc/config/docker文件,将`option enabled`置为`1` - 运行`/etc/init.d/docker restart`即可 #### 测试 提供几个测试用的命令 - `docker run hello-world` - `docker run -p 8080:80 -e MSG='This message will be displayed on the web page' --rm wouterm/helloworld` (需要打开对应地址验证) #### 注意事项 - 只支持x86_64平台 - data-dir的配置不要放在overlay类型的分区上,否则docker会使用vfs存储驱动,导致严重的性能问题和空间占用问题 - 请确保固件空间大于128M,推荐256M #### 已知问题 - 首次启动container时,配置网络会导致一个内核错误,但不致命