This is a basic Ubuntu image to build Docker images for different services.
In order to use it more easily, we uploaded the image to three independent image hosting platforms:
- Docker Hub
- Quay.io
- Aliyun (Shanghai)
- The basic function is to provide ......
- Considering the diversity of CPU arch nowadays, we provide 8 archs including amd64, i386, arm64 and so on.
- Other small features: log files persistence, www data persistence.
It's very easy to use it through docker-compose
(Recommend).
# docker-compose.yml
version: "3"
services:
ubuntu:
image: zhonger/ubuntu:latest
container_name: dev
environment:
- GITHUB_NAME=zhonger
stdin_open: true
tty: true
ports:
- 22:22
volumes:
- /etc/localtime:/etc/localtime
restart: always
docker-compose up -d
If you want to know more about the idea and details, you can refer to 《Docker 镜像构建之基础篇》. (Sorry, it's only Chinese now. In the future, we will provide English version.)
这个 Ubuntu 基础镜像是为构建各种服务的 Docker 镜像而准备的。
为了便于使用,我们将镜像上传到了三个独立的镜像托管平台:
- Docker Hub
- Quay.io
- Aliyun (上海)
- 本镜像的基础功能是提供.....
- 考虑现今 CPU 架构的多样性,本镜像支持包括 amd64、i386、arm64 等在内的 8 种架构。
- 其他小特性:日志持久化、数据持久化。
通过 docker-compose
可以非常方便使用本镜像(推荐)。
# docker-compose.yml
version: "3"
services:
ubuntu:
image: zhonger/ubuntu:latest
container_name: dev
environment:
- GITHUB_NAME=zhonger
stdin_open: true
tty: true
ports:
- 22:22
volumes:
- /etc/localtime:/etc/localtime
restart: always
docker-compose up -d
关于本镜像的更多思考和详细步骤,请访问 《Docker 镜像构建之基础篇》 了解更多。