zhonger / docker-ubuntu

A basic docker image based on Ubuntu

Home Page:https://hub.docker.com/r/zhonger/ubuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic Ubuntu Docker Image

Description

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:

Features

  • The basic function is to provide zsh and ubuntu user.
  • Considering the diversity of CPU arch nowadays, we provide 6 archs including amd64, arm64 and so on.
  • Three types:
    • base: including ubuntu user, git, htop, zsh; without sudo mode.
    • advance: including sudo mode and other base features.
    • ssh: including ssh, ssh-import-id and other advance features.

How to use it

It's very easy to use it through docker-compose (Recommend).

# docker-compose.yml
version: "3"

services:
  ubuntu:
    image: zhonger/ubuntu:ssh
    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

More

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 镜像而准备的。

为了便于使用,我们将镜像上传到了三个独立的镜像托管平台:

特性

  • 本镜像的基础功能是提供 zsh 和 ubuntu 用户。
  • 考虑现今 CPU 架构的多样性,本镜像支持包括 amd64、arm64 等在内的 6 种架构。
  • 三种类型:
    • base: 新增 ubuntu 用户、git、htop 和 zsh; 没有 sudo 权限。
    • advance: 在 base 的基础上新增 sudo 权限。
    • ssh: 在 advance 的基础上新增 sshssh-import-id 工具。

如何使用

通过 docker-compose 可以非常方便使用本镜像(推荐)。

# docker-compose.yml
version: "3"

services:
  ubuntu:
    image: zhonger/ubuntu:ssh
    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 镜像构建之基础篇》 了解更多。

About

A basic docker image based on Ubuntu

https://hub.docker.com/r/zhonger/ubuntu

License:MIT License


Languages

Language:Dockerfile 83.0%Language:Shell 17.0%