Sign inSign up

inetsix/vps-ubuntu

By inetsix

•Updated over 7 years ago

A VPS Container based on lastest Ubuntu image

Image
2

1.9K

inetsix/vps-ubuntu repository overview

⁠Ubuntu Docker VPS

Build Status

Use this Dockerfile / -image to start a VPS instance upon an Ubuntu container

⁠Features

  • Use latest version of Ubuntu
  • Provides basic VPS tools
  • User defined username and password

⁠Basic Usage

⁠Password Definition
$ docker run -d -P --name vps 
        -e VPS_USER=tom 
        -e VPS_PASSWORD=passowrd 
        inetsix/vps-ubuntu

Default username and password are configured to netscreen / netscreen and will be updated with your VPS_USER and VPS_PASSWORD

⁠Retrieve Container IP address
$ docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' vps
172.17.0.2

$ ssh 172.17.0.2 -l tom

The authenticity of host '172.17.0.2 (172.17.0.2)' can't be established.
ECDSA key fingerprint is SHA256:Q1U1F8zgX25tgcGWJucMa0IR+hbT1subwFGFmLoKXrk.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/tom/.ssh/known_hosts).
[email protected]'s password:

Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.13.0-46-generic x86_64)
tom@vps-container$ 

⁠Get port mapping

Unless you use port option, Docker will automatically bind container ssh port to a random port on host. To get this mapping, use following command:

$ docker port vps
22/tcp -> 0.0.0.0:32785

You can test connectivity from remote device

$ ssh $PUBLIC_IP$ -p 32785

[email protected]'s password:

Welcome to Ubuntu 18.10 (GNU/Linux 4.13.0-46-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

                  ___           ___           ___           ___                       ___
      ___        /\__\         /\  \         /\  \         /\  \          ___        |\__\
     /\  \      /::|  |       /::\  \        \:\  \       /::\  \        /\  \       |:|  |
     \:\  \    /:|:|  |      /:/\:\  \        \:\  \     /:/\ \  \       \:\  \      |:|  |
     /::\__\  /:/|:|  |__   /::\~\:\  \       /::\  \   _\:\~\ \  \      /::\__\     |:|__|__
  __/:/\/__/ /:/ |:| /\__\ /:/\:\ \:\__\     /:/\:\__\ /\ \:\ \ \__\  __/:/\/__/ ____/::::\__\
 /\/:/  /    \/__|:|/:/  / \:\~\:\ \/__/    /:/  \/__/ \:\ \:\ \/__/ /\/:/  /    \::::/~~/~
 \::/__/         |:/:/  /   \:\ \:\__\     /:/  /       \:\ \:\__\   \::/__/      ~~|:|~~|
  \:\__\         |::/  /     \:\ \/__/     \/__/         \:\/:/  /    \:\__\        |:|  |
   \/__/         /:/  /       \:\__\                      \::/  /      \/__/        |:|  |
                 \/__/         \/__/                       \/__/                     \|__|


    Important: Nothing will be backed up. Please ensure to use this instance as non permanent one

Last login: Sun Jan 13 21:54:34 2019 from 86.246.176.183
tom@a71406e0462d:~$

⁠Original Idea:

Tag summary

Content type

Image

Digest

Size

306.2 MB

Last updated

over 7 years ago

docker pull inetsix/vps-ubuntu