<p>I'd have to say that I don't think it's possible and if you understood windows containers you really wouldn't want to do it anyway. Last time I checked, a windows container weighs in at gigabytes++ and that's huge to run notepad.</p>
<p>You can run xwindows apps in a container, but windows is, basically, complete shite in a container.</p>
<p>If you want a sandbox then you should checkout <a href="https://www.virtualbox.org/" rel="nofollow noreferrer">VirtualBox</a> or <a href="https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/" rel="nofollow noreferrer">Hyper-V</a>. You can script either with <a href="https://www.vagrantup.com/" rel="nofollow noreferrer">Hashicorp Vagrant</a>.</p>

CC BY-SA 4.0
2021-01-04T13:10:50.100Z
2021-01-13T09:48:14.390Z
2021-01-13T09:48:14.390Z
Software Engineer
<p>Is it possible to run a Windows GUI executable (notepad.exe for example) into a container ?</p>
<p>I want to do this because i do not trust some software i install on my personal computer and i want to be sure they are runned into a sandbox</p>
<p>Thanks</p>

<docker>
Dockerize a windows GUI application
Bob5421
# Dockerize a windows GUI application

(Asked by: username_0 on 2021-01-02)

Is it possible to run a Windows GUI executable (notepad.exe for example) into a container ?

I want to do this because i do not trust some software i install on my personal computer and i want to be sure they are runned into a sandbox

Thanks

**Tags:** docker


---

## 1 answers

### Answer by username_1 on 2021-01-04. Score: 4 | Accepted answer

I'd have to say that I don't think it's possible and if you understood windows containers you really wouldn't want to do it anyway. Last time I checked, a windows container weighs in at gigabytes++ and that's huge to run notepad.

You can run xwindows apps in a container, but windows is, basically, complete shite in a container.

If you want a sandbox then you should checkout [VirtualBox](https://www.virtualbox.org/) or [Hyper-V](https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/). You can script either with [Hashicorp Vagrant](https://www.vagrantup.com/).


---

