# Problem launching Ignition from docker

**URL:** <https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727>\
**Category:** General Discussion\
**Created:** [October 15, 2020, 6:10pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727 "2020-10-15T18:10:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpascucci](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@dpascucci](https://forum.inductiveautomation.com/u/dpascucci)\
**Post date:** [October 15, 2020, 6:10pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/1 "2020-10-15T18:10:00Z")

</div>

Hello everyone,  
I’m trying to run an ignition instance from docker, but I set the default port 8088 and I have another instance of ignition running in the local OS.  
I tried to change the port but I can’t load the gateway. Any suggestion?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 15, 2020, 6:29pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/2 "2020-10-15T18:29:06Z")

</div>

Leave the port as 8088 _inside_ the container, but map a different port on your host OS.  
When you create the container (whether using the official images for 8.1 or Kevin Collin’s community images for 7.9/8.0) you can specify ports on the `docker run` command, e.g. `docker run -p 9088:8088 --name test inductiveautomation/ignition:nightly` - 9088 is the host port, 8088 is the port inside the container.

---

<div class="post-metadata">

**Author:** ![dpascucci](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@dpascucci](https://forum.inductiveautomation.com/u/dpascucci)\
**Post date:** [October 15, 2020, 6:51pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/3 "2020-10-15T18:51:02Z")

</div>

Thanks, Paul, I’ll give a try!

---

<div class="post-metadata">

**Author:** ![dpascucci](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@dpascucci](https://forum.inductiveautomation.com/u/dpascucci)\
**Post date:** [October 15, 2020, 7:15pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/4 "2020-10-15T19:15:48Z")

</div>

Paul, for some reasons I don’t have the Gateway Control Utility installed in my OS.  
Is there any other way to change the port?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 15, 2020, 7:17pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/5 "2020-10-15T19:17:08Z")

</div>

If you’re using Ignition 8 you should be looking for the command line util instead: [https://docs.inductiveautomation.com/display/DOC80/Gateway+Command-line+Utility](https://docs.inductiveautomation.com/display/DOC80/Gateway+Command-line+Utility)

---

<div class="post-metadata">

**Author:** ![dpascucci](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@dpascucci](https://forum.inductiveautomation.com/u/dpascucci)\
**Post date:** [October 15, 2020, 9:35pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/6 "2020-10-15T21:35:16Z")

</div>

Hi guys,  
I changed the local OS http port as follow:  
C:\Program Files\Inductive Automation\Ignition\>gwcmd -k 80  
HTTP port changed. The Gateway must be restarted for this change to take effect.

Docker settings:  
Restarted the gateway (I had to do it under windows/services)

And tried to access the localhost but neither the local OS and the docker works.

`Adding gateway.publicAddress.autoDetect=false to gateway.xml`

`Adding gateway.publicAddress.address=0.0.0.0 to gateway.xml`

`Adding gateway.publicAddress.httpPort=8088 to gateway.xml`

`Adding gateway.publicAddress.httpsPort=8043 to gateway.xml`

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 15, 2020, 11:09pm UTC](https://forum.inductiveautomation.com/t/problem-launching-ignition-from-docker/39727/7 "2020-10-15T23:09:21Z")

</div>

> [@dpascucci](#):
>
> C:\Program Files\Inductive Automation\Ignition\>gwcmd -k 80

I'm confused. The last messages logged make it seem like you're using the official Ignition docker image, which is Linux only, but you're running a `gwcmd` on a Windows system? It seems like you might be interacting with a different gateway than you expect.

Besides _that_, I suspect that one issue might be the `0.0.0.0` gateway address - there's currently an issue in the official docker image, where if you don't specify a valid HTTP address with the `-a` flag the HTTP address will be set to 0.0.0.0 explicitly, instead of auto-detecting. If you can reach the gateway web interface, you can re-enable the auto-detect setting - or you could manually do so inside the container by editing `gateway.xml` in `/usr/local/bin/ignition/data`.
