Giter Site home page Giter Site logo

docker-ubuntu's Introduction

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 镜像构建之基础篇》 了解更多。

docker-ubuntu's People

Contributors

zhonger avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.