You can use this image as an alternative for VPS. It's full Ubuntu image with systemd support and preinstalled ssh server.
docker network create -d ipvlan --subnet=192.168.50.0/24 --gateway=192.168.50.1 -o ipvlan_mode=l2 -o parent=wlp3s0 net0
docker run -d --name ubuntu --restart always --net=net0 --ip=192.168.50.210 --hostname=ubuntu.myhost.com --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro ypatrin/ubuntu:22.04
docker exec -it ubuntu bash
admin:useradd --home-dir /home/admin --groups sudo --create-home --shell /bin/bash admin
admin:echo "admin:qwerty" | chpasswd
root:echo "root:qwerty" | chpasswd
rm -v /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
systemctl restart ssh
Content type
Image
Digest
Size
648.9 MB
Last updated
over 4 years ago
docker pull ypatrin/ubuntu