Sign inSign up

rht0910/ubuntu

By rht0910

Updated about 8 years ago

You can use Ubuntu when out of the box.

Image
0

1.0K

rht0910/ubuntu repository overview

You can use Ubuntu when out of the box. This is very easy to set up.

SSH Port is 23.

Installation:

  • docker pull rht0910/ubuntu (If you want use 16.04, please type docker pull rht0910/ubuntu:xenial)
  • docker run -d --hostname ubuntu --name ubuntu -p 22:23 -i -t rht0910/ubuntu /init.sh (16.04: ... -t rht0910/ubuntu:xenial /init.sh)
  • Complete! (Running in background)
  • Attach: docker attach ubuntu

Good:

  • Bash is not spawning in PID 1.
  • You can use the 'exit' command(official images are stopping the container when exit command, but this is not working)

Bad:

  • Very same as official Ubuntu image.
  • Can't detach using 'exit', You'll need CTRL+P and CTRL+Q.

Pre-installed packages(Only for xenial):

  • nano
  • vim
  • python (2.7)
  • python3 (3.5)
  • python3.5
  • openssh-server (Port: 23)
  • sudo
  • net-tools
  • lsof
  • iputils-ping
  • dialog
  • git
  • rsync
  • less
  • make
  • tar
  • patch
  • docker-ce (Docker on Docker!?)
  • cron
  • curl
  • apt-transport-https
  • software-properties-common
  • iptables (may not be working with docker)
  • Docker Official Ubuntu Repository

Pre-installed user:

  • user (Password: user)
  • To use commands as root(eg. connecting from ssh), please run sudo <command> or sudo su - to grant root permission.

Not preinstalled some packages in Bionic, but you can install them. apt update && apt upgrade -y && apt install software-properties-common dialog apt-transport-https && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && apt update && apt install ca-certificates nano vim python python3 python3.5 net-tools lsof iputils-ping git rsync less make tar patch docker-ce cron curl apt-transport-https iptables -y You can install them in this super long command.

Tag summary

Content type

Image

Digest

Size

119 MB

Last updated

about 8 years ago

docker pull rht0910/ubuntu