Docker Example Ubuntu
Docker allows us to install any operating system in an isolated container. Here, we are installing Ubuntu in Docker.
1. Take ubuntu image pull from docker hub.
sudo docker pull ubuntu
2. List down the Images
sudo docker images
3. Now run the container using this image
sudo docker run -it -d ubuntu
4. List down the running containers
sudo docker ps
5. Enter in running container
sudo docker exec -it <container-id > /bin/bash
6. To exit from container without killing it press CTRL+P CTRL+Q