To run docker image, execute the following code:
docker run -it centos bash
Using docker run -it centos bash allows you to get access to a bash shell inside of a container. You can use this shell to run linux commands.
To get OS version information, execute following command
You can exit container by executing following command