# docker-rockchip-liunx **Repository Path**: grugbai/docker-rockchip-linux ## Basic Information - **Project Name**: docker-rockchip-liunx - **Description**: 基于ubuntu1804创建的rockchip-linux的Docker环境,参考OpenharmonyOS docker和git@gitee.com:caesar-wang/docker-rockchip.git环境搭建。 - **Primary Language**: Docker - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-04 - **Last Updated**: 2022-10-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: Docker ## README # Docker镜像 本文为Docker编译环境使用指导。 ## 使用方式及步骤 1. 编译Docker镜像 ``` ./build.sh ``` 2. 进入代码根目录执行如下命令,从而进入Docker构建环境 ``` sudo docker run -it -v $(pwd):/home/rkuser rockchip:1.0.0 ``` 3. 如果需要移植到离线环境,先打包 ``` sudo docker save rockchip | gzip > rockchip-docker-rkuser.tar.gz ``` 4. 在离线的机器上(已安装好Docker环境),拷贝rockchip-docker.tar.gz,在拷贝的目录运行如下命令 ``` sudo gunzip -c rockchip-docker-rkuser.tar.gz | sudo docker load ``` 5. 使用如下命令可以查看是否已经安装成功 ``` sudo docker images ls ``` 6. 已经编译的Docker image 百度网盘路径 ``` 链接:https://pan.baidu.com/s/15u3jOlT42CPgr69JEJzyYg?pwd=kznq 提取码:kznq ``` ## Install Docker Use this command to install the latest version of Docker(replace docker with docker.io in ubuntu 14.04): sudo apt-get install docker qemu-user-static binfmt-support Start run Docker deamon: sudo service docker start Build Docker image by dockerfile: sudo docker build -t rockchip . ## Modify image If you want to modify your Docker image, you can open a shell by below command: ``` sudo docker run -it rockchip /bin/bash ``` After exit from container, you should use below command to save your changes. ``` sudo docker commit rockchip ```