gh-develop / docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 suintyu/ubuntu:test .
	docker run -it --rm --name u1  suintyu/ubuntu:test

Get the port that the container is listening on:

# docker ps
CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS              PORTS               NAMES
63a0ba73bf81        suintyu/ubuntu:test   "/bin/bash"         4 seconds ago       Up 3 seconds                            u1

To test,

	tree

To Rollback

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

About


Languages

Language:Dockerfile 100.0%