# Using CentOS 7 image in Docker

**URL:** <https://forums.docker.com/t/using-centos-7-image-in-docker/5931>\
**Category:** General\
**Tags:** docker\
**Created:** [January 29, 2016, 2:16am UTC](https://forums.docker.com/t/using-centos-7-image-in-docker/5931 "2016-01-29T02:16:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reynierpm](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/reynierpm/32/4173_2.png) [@reynierpm](https://forums.docker.com/u/reynierpm)\
**Post date:** [January 29, 2016, 2:16am UTC](https://forums.docker.com/t/using-centos-7-image-in-docker/5931/1 "2016-01-29T02:16:06Z")

</div>

This is my first time with Docker so as usually I am having a few doubts. I am running Windows 10 x64 as a host with all virtualization flags enabled and I have installed Docker. I am reading and following the guide at [this link](https://docs.docker.com/windows/step_three/) but I want to do using CentOS instead of the image them use as example for which I found the CentOS image and get [this](https://hub.docker.com/r/library/centos/), all right but what is the next command I should run: `docker pull centos` or something like `docker run docker/whalesay cowsay boo` (which by the way I don’t know the proper one for CentOS)? Any advice on this?

---

<div class="post-metadata">

**Author:** ![thinhduckhoi](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@thinhduckhoi](https://forums.docker.com/u/thinhduckhoi)\
**Post date:** [January 29, 2016, 4:15am UTC](https://forums.docker.com/t/using-centos-7-image-in-docker/5931/2 "2016-01-29T04:15:17Z")

</div>

If you want to use Centos, “docker pull centos” is the command you need to “download” Centos OS into your computer.

---

<div class="post-metadata">

**Author:** ![reynierpm](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/reynierpm/32/4173_2.png) [@reynierpm](https://forums.docker.com/u/reynierpm)\
**Post date:** [January 29, 2016, 2:16pm UTC](https://forums.docker.com/t/using-centos-7-image-in-docker/5931/3 "2016-01-29T14:16:58Z")

</div>

Great, thanks I used another command `docker run -it centos` but the one you gave me should works too
