镜像源

https://cloud.tencent.com/document/product/213/46000#3urWMKkP_Vo0r04aD_bbX

Windows Container

<aside> <img src="notion://custom_emoji/9040cc52-5c24-4c85-8328-7061a24dd7f9/1b0d969b-881f-806e-93ce-007a91128a50" alt="notion://custom_emoji/9040cc52-5c24-4c85-8328-7061a24dd7f9/1b0d969b-881f-806e-93ce-007a91128a50" width="40px" />

日常使用均为Linux 容器。 Windows 容器提供 .NET 等Windows 技术集成,适合深度依赖者。

Windows 容器常使用 PowerShell 作为终端命令,需要额外学习成本。

</aside>


Github 提供免费构建容器的核时额度,支持一个self-host 构建节点。

Jenkens 开源且支持自部署。

可以使用JetBrain 的TeamCity 构建软件开发、容器化部署流程。

https://docs.xin-lai.com/2019/03/05/容器教程/Docker最全教程之使用TeamCity来完成内部CI、CD流程(十六)/


Docker Official Images

Best practices

安装和使用

1 ubuntu “https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: <https://download.docker.com/linux/ubuntu>
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin