Docker
Export Docker Image
You can also compress the image:
Prepare a Docker Container as a Remote Server
Take Ubuntu-based image as an example,
Start a container with port forwarding:
In the docker container:
Allow ssh as a root user:
Then reset a password:
Start openssh server: