# How to Dockerize your ASP.NET Core app directly from Visual Studio

In this article we will see how to add docker support to ASP<span>.</span>NET core app directly from Visual Studio with just `3 Clicks` **without manually creating or writing any code** to `Dockerfile`.


1. Navigate to the Solution Explorer of your project and <br/>
Right-click on the ASP<span>.</span>NET project -> Select `Add` -> Click `Docker Support`
    ![Add Support Edited.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1615131535248/RMDluBrGN.png)
2. Choose the Target OS where the docker image will run `Windows / Linux`, and click `OK`
    ![Target OS.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1615134727875/N00WjYN4k.png)
3. Visual Studio will create a `Dockerfile` for you, which specifies how to create the container image for your ASP.NET Core app project. 
    ![Dockerfile.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1615134812429/F5ruAAzHs.png)

4. Click on the `Docker` button to build the image and run it inside a Docker container, rather than in IIS Express.
    ![Docker Run.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1615132587750/CWcV8ezK1.png)
    ![Running WebAPP Edited.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1615133910042/E2jfyd93Z.png)

5. You could verify that your container is running using the Docker command-line tools; open a cmd or Terminal and type in `docker container ls` to view the containers.
    ![Docker Container ls.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1615134060515/55HdFcAY3.png)

That's it, you have successfully added Docker support to your ASP<span>.</span>NET core app and your app is now running inside a Docker container.
