Containers are a standard way to package an application and all its dependencies so that it can be moved between environments and run without change. They work by hiding the differences between applications inside the container so that everything outside the container can be standardized.
For example, Docker created standard way to create images for Linux Containers.
- Presentation: Containers Basics
Below are some commands we use often on Docker.
# Know docker versiondocker -version# Run a containerdocker run <image># List containers runningdocker ps
Reference during live demo
docker --versiondocker versiondocker run hello-worlddocker run --name nginx bitnami/nginxdocker psdocker ps -adocker exec -it nginx bashdocker stop nginxdocker start nginx
|What is a Container?||A look under the the covers at what is a Linux Container?||Understand Containers||10 min|
|What is an Image?||A look under the the covers at what is a Linux Container Image?||Container Images||10 min|
|Docker Basics||Set of walkthroughs that cover docker basics||Docker Basics||10 min|
|Try It Yourself|
|IBM Container Registry||Build and Deploy Run using IBM Container Registry||IBM Container Registry||30 min|
|Docker Lab||Running a Sample Application on Docker||Docker Lab||30 min|
Once you have completed these tasks, you should have a base understanding of containers and how to use Docker.