# Gitea in a windows container possible?

**URL:** <https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948>\
**Category:** Install/Maintain/Configure\
**Created:** [February 18, 2019, 4:51pm UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948 "2019-02-18T16:51:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FLeven](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/fleven/32/407_2.png) [@FLeven](https://forum.gitea.com/u/FLeven)\
**Post date:** [February 18, 2019, 4:51pm UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948/1 "2019-02-18T16:51:40Z")

</div>

Is it even supposed to work inside a windows container ? I tried to run the last three versions inside a standard windows servercore container, but it will not even log any error.

---

<div class="post-metadata">

**Author:** ![anon74399538](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon74399538](https://forum.gitea.com/u/anon74399538)\
**Post date:** [February 19, 2019, 6:11am UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948/2 "2019-02-19T06:11:37Z")

</div>

TIL windows containers [are a thing](https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/). So I don’t see why not if there’s a binary which runs on Windows.

---

<div class="post-metadata">

**Author:** ![FLeven](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/fleven/32/407_2.png) [@FLeven](https://forum.gitea.com/u/FLeven)\
**Post date:** [February 19, 2019, 9:30am UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948/3 "2019-02-19T09:30:45Z")

</div>

It is not working, you execute the binary and it does nothing, it will not even log any error.

Never had a problem like this and I am running all different kinds of services in a docker container for some time now.

Thats why I am asking, if it is supported / possible.

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [February 26, 2019, 10:34pm UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948/4 "2019-02-26T22:34:10Z")

</div>

There are many people running Gitea on windows directly so it _should_ run in a container. However you may need to install some dependencies in the container in addition to Gitea, such as the git binary.

If possible, could you share the Dockerfile you use for windows container? As then it would be easier to debug what is happening.

---

<div class="post-metadata">

**Author:** ![FLeven](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/fleven/32/407_2.png) [@FLeven](https://forum.gitea.com/u/FLeven)\
**Post date:** [February 26, 2019, 10:59pm UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948/5 "2019-02-26T22:59:58Z")

</div>

Pull the newest Server core/Nano Container from the registry, Install git.install, getea from the chocolatey repo and run the Container interactive, with the Exposed Ports You need (http,DB,SSH). Gitea will Not Run at all, I even ran the Container AS “system”.

I use getea on Windows Server core vor a while now, nothing Special required.

---

<div class="post-metadata">

**Author:** ![FLeven](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/fleven/32/407_2.png) [@FLeven](https://forum.gitea.com/u/FLeven)\
**Post date:** [March 26, 2019, 1:03pm UTC](https://forum.gitea.com/t/gitea-in-a-windows-container-possible/948/6 "2019-03-26T13:03:33Z")

</div>

> <https://github.com/go-gitea/gitea/issues/6431>
