Basic container operations
- Creating a docker container in docker playground for this we need to create account in docker hub
- Container lifecycle

- Container operations
- Create
- start
- run (create + start)
- stop
- pause
- unpause
- remove/delete
- docker cheatsheet
- Create a container and start it
docker container run -d httpd:latest
docker run -d httpd:latest

* To list all the running containers
docker ps
docker container ls

- Every container when created gets a unique container id and if you have not passed the name docker randomly assigns a name
- So lets create a container with a name
docker container run -d httpd:latest
docker run -d httpd:latest

* To manage the container we can pass container id or name
* Lets stop a container
docker stop <container-id|name>
docker container stop <container-id|name>


* lets start the containers

* Let try removing the container


Examine containers
-
Lets create two containers web1 and web2

- watch classroom recording for remaining examination.
Exercise:
- What happens when you start a linux machine in terms of processes what gets launched first
