Use ubuntu-cn in China.
中文 | English
- Released @DockerHub: skybro/ubuntu-cn
- Source @Github: sky-bro/ubuntu-cn
Look into the dockerfile for more details.
- Substitute the offcial software repositories with Tsinghua's. (see Tsinghua Tuna)
- Tiemzone set to China
- Language set to en_US.utf8
- Bash extended globbing enabled
- ssh server
- enable X forwarding
- enable Root login
- vim
more tags at docker hub
- run a container and give it a name
docker container run --name ubt18 -it skybro/ubuntu-cn:18.04
- run a command on a running container
docker container exec -it ubt18 bash
- start a stopped container
docker container start -ai ubt18
- remove a stopped container
docker container rm ubt18
- force remove a container
docker container rm -f ubt18
- run a container only once
docker container run -it --rm skybro/ubuntu-cn
Uses ubuntu:latest
base image by default. (change the image name:tag to your own)
docker image build -t skybro/ubuntu-cn:bionic .
To build other versions of ubuntu, just pass the VERSION ARG.
docker image build -t skybro/ubuntu-cn:bionic --build-arg VERSION=bionic .
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License