# Come cambiare la porta da Docker - aiuto

**URL:** <https://meta.discourse.org/t/how-to-change-the-port-from-docker-help/46401>\
**Category:** Self-hosting\
**Created:** [24 Giugno 2016, 1:17pm UTC](https://meta.discourse.org/t/how-to-change-the-port-from-docker-help/46401 "2016-06-24T13:17:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paulfree](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulfree/32/58789_2.png) [@paulfree](https://meta.discourse.org/u/paulfree)\
**Post date:** [26 Giugno 2016, 6:41pm UTC](https://meta.discourse.org/t/how-to-change-the-port-from-docker-help/46401/2 "2016-06-26T18:41:54Z")

</div>

I’ve manged to change the port. In the end it was very simple.

(if this description is correct I don’t know, I just describe what I did, so that the port was free and I could continue with the installing process)

edit the file discourse-setup

```
`sudo -s
cd /var/discourse
nano discourse-setup

```

Nano should open inside the shell. Search for the line with port 80 and change it to a port which is free.

To save the changes and exit nano you press  
crl + ^ + x

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-the-port-from-docker-help/46401)._
