Skip to content

chaeanna/dockerBuild2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

dockerBuild2...

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

Get the port that the container is listening on:

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

To test,

	tree

To Rollback

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •