# docker **Repository Path**: csplink/docker ## Basic Information - **Project Name**: docker - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-17 - **Last Updated**: 2023-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
logo

DOCKER

github-ci github-ci github-ci github-ci github-ci github-ci github-ci github-ci
pulls pulls
license document gitter qq bilibili
CSP:用于灵活配置芯片与板卡的工具
csplink 中常用的 DockerFile
[English](README.md) | **中文** ## ✨ 特性 - 👷 CI 自动构建 - ☁️ 同步至 DockerHub ## 构建 > 对应目录下: ```shell docker build -f ./Dockerfile -t test:tag . ``` ## 运行 ### 不挂载目录 ```shell docker run --name test -p 10000:22 -itd test:tag ``` ### 挂载目录 ```shell docker run --name test -p 10000:22 -v ~:/home/csplink -itd test:tag ``` ## 执行 ```shell docker exec -it test /bin/bash ``` ### 镜像 > 有时候我们需要切换到本地服务的镜像 #### 华为云 ```shell sed -i 's/archive.ubuntu.com/repo.huaweicloud.com/g' /etc/apt/sources.list; sed -i 's/security.ubuntu.com/repo.huaweicloud.com/g' /etc/apt/sources.list; ``` #### 阿里云 ```shell sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list; sed -i 's/security.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list; ```