Ubuntu, It support base user creation and password setting..
Copy the sources to your docker host and build the container, and to run.
docker build --rm -t nowage/ubuntu:test .
docker run -it --rm --name u1 nowage/ubuntu:test
Get the port that the container is listening on:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fc199e02d300 nowage/ubuntu:test "/bin/bash" 41 seconds ago Up 40 seconds u1
To test, ("nowage" is username. )
tree
To Rollback
docker rm u1 -f
docker rmi nowage/ubuntu:test