Copy the sources to your docker host and build the container, and to run.
docker build --rm -t ohchangwon/ubuntu:1 .
docker run -it --rm --name u1 ohchangwon/ubuntu:1
Get the port that the container is listening on:
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
63a0ba73bf81 ohchangwon/ubuntu:1 "/bin/bash" 4 seconds ago Up 3 seconds u1
To test,
tree
To Rollback
docker rm u1 -f
docker rmi ohchangwon/ubuntu:1
Content type
Image
Digest
sha256:fb585c8d7…
Size
26.1 MB
Last updated
over 2 years ago
docker pull ohchangwon/ubuntu:4