Sign inSign up

bastardhy/ubuntu

By bastardhy

Updated over 4 years ago

ubuntu server 20.04 for web development

Image
0

23

bastardhy/ubuntu repository overview

preinstalled:
  • systemd
  • init
  • apache2
  • postgresql
  • php-7.4
  • openssh-server

networking:

  • docker network create -d bridge mynetwork

to run image as server with daemon system :

  • docker run -d --privileged=true --network=mynetwork --name=myserver --restart=always -p 3022:22 -p 8080:80 -v /home/user/docker/server:/var/www/html bastardhy/ubuntu:server /sbin/init

port forwarding:

  • port 3022:22 for SSH remote
  • port 8080:80 for web server

installing or configuring another package :

  • docker run -it bastardhy/ubuntu:server /bin/bash

maybe you will need to enable apache2 service with command:

  • systemctl restart apache2

  • or

  • systemctl enable apache2

to check if apache2 is working just click here -> http://localhost:8080

  • put your web file in /home/user/docker/server/

Tag summary

Content type

Image

Digest

Size

169.5 MB

Last updated

over 4 years ago

docker pull bastardhy/ubuntu:server