This repository contains some simple examples for getting started with Docker. Create a new repo from this one and get started!
Head over to https://docs.docker.com/get-docker/ to install Docker.
docker container ls -a
= show me all containers on my machinedocker image ls -a
= show me all images on my machinedocker container stop <container-id>
= stop a container gracefullydocker container kill <container-id>
= force stop a containerdocker container rm <container-id>
= delete a containerdocker image rm <container-id>
= delete an imagedocker logs <container-id>
= see container stdoutdocker exec -it <container-id> <command>
= execute a command in the container
Each example contains a build.sh
and a start.sh
with example commands for building and starting each example. Containers will be run with -d
so to see console output run docker logs <container-id>
or run docker exec -it <container-id> <command>
to execute a command in the container.