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 kangseoju/ubuntu2:test .
docker run -it --rm --name u1 kangseoju/ubuntu2:test
Get the port that the container is listening on:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
63a0ba73bf81 kangseoju/ubuntu2:test "/bin/bash" 4 seconds ago Up 3 seconds u1
To test,
tree
To Rollback
docker rm u1 -f
docker rmi kangseoju/ubuntu2:test
Content type
Image
Digest
sha256:a057de89e…
Size
79.4 MB
Last updated
over 2 years ago
docker pull kangseoju/ubuntu2:test