/test1

연습용

Primary LanguageDockerfile

dockerfiles-ubuntu-user-adderable

Ubuntu, It support base user creation and password setting.

Building & Running

Copy the sources to your docker host and build the container, and to run.

	docker build   --rm -t seedhunt/ubuntu:test .
	docker run -it --rm --name u1  seedhunt/ubuntu:test

Get the port that the container is listening on:

# docker ps
CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS              PORTS               NAMES
fc199e02d300        seedhunt/ubuntu:test   "/bin/bash"         41 seconds ago      Up 40 seconds                           u1

To test, ("seedhunt" is username. )

	tree

To Rollback

    docker rm u1 -f
    docker rmi seedhunt/ubuntu:test