8000 GitHub - pladdy/docker-practice: My docker sandbox
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pladdy/docker-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

docker-practice

My docker sandbox

Commands

docker pull busybox
docker run busybox echo "Hello, world!"
docker run -it sh
# in the container...'exit' to leave

# list containers
docker ps -a
# remove exited containers
docker rm $(docker ps -a -q -f status=exited)

# pull some images down
docker pull ubuntu # defaults to latest
docker pull golang:1.9.4 # latest doesn't seem to work...

# see images
docker images

# add a docker image to your images list
docker build -t pladdypants/golang . # this builds the local Dockerfile in this repo

# run it
docker run pladdypants/golang

# if you want to remove an image
docker rmi <image id>

# multi-containers
docker network inspect bridge

# create a network

# create a db container

# create app container

Reference

About

My docker sandbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0