Sign inSign up

tomy0000000/ubuntu

By tomy0000000

•Updated about 6 years ago

Image
0

149

tomy0000000/ubuntu repository overview

⁠Ubuntu Xenial

The popular Linux distribution based on Debian, as a development runtime.

Please refer to Github⁠ for latest version of README

⁠Information

ubuntu

Configurations
Base Imageubuntu:xenial
Container Nameawesome-ubuntu
Volumes. → /home/$USER/host
Network
Working Directory/ for dockerfile
/home/$USER for login shell
Expose Port22 → 220

⁠Install

  • Pull from hub
docker pull tomy0000000/ubuntu:xenial
  • Build from source
docker build --tag tomy0000000/ubuntu:xenial .

⁠Usage

  • Run a temporary playground container (remove on exit)
docker run \
		-it --rm \
		--name="$AWESOME_HOST-ubuntu" \
		--hostname="$AWESOME_HOST-ubuntu" \
		--env="AWESOME_USER" \
		--env="AWESOME_PASSWORD" \
		--volume="$PWD:/home/$AWESOME_USER/host" \
		tomy0000000/ubuntu:xenial
  • Run a detached container with SSH server
docker run \
		-it --rm \
		--name="awesome-ubuntu" \
		--hostname="$AWESOME_HOST-ubuntu" \
		--env="AWESOME_USER" \
		--env="AWESOME_PASSWORD" \
		--publish "127.0.0.1:220:22" \
		--volume="$PWD:/home/$AWESOME_USER/host" \
		tomy0000000/ubuntu:xenial

⁠Custom Setting

⁠Applied
  • Pre-install curl, git, openssh-server, sudo, wget, zsh from apt
  • Pre-install Oh My Zsh, powerlevel10k
  • Change default shell to zsh
  • Custom zshrc, .p10k.zsh
⁠Runtime
  • Create new user
  • Bind host's runtime directory to container's home directory
⁠Host Machine
  • (None)

⁠References

Tag summary

Content type

Image

Digest

Size

117.6 MB

Last updated

about 6 years ago

docker pull tomy0000000/ubuntu:xenial-1.1