# Edit a file in the docker container

**URL:** <https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144>\
**Category:** Help / Discuss\
**Tags:** docker, session, timeout\
**Created:** [June 24, 2019, 12:58pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144 "2019-06-24T12:58:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![axel](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@axel](https://forum.xwiki.org/u/axel)\
**Post date:** [June 24, 2019, 12:58pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144/1 "2019-06-24T12:58:06Z")

</div>

hi all, I just wanted to edit the web.xml file as described [here](https://www.xwiki.org/xwiki/bin/view/FAQ/How%20can%20I%20change%20the%20Session%20timeout) to increase the session timeout which is abysmally short and started to really annoy me 🙂 .

so … long story short - there is not a single file editor in the docker container. and I can’t install one, cause apt-get update is broken.

is that intentional?! cause it’s pretty, hm, impractical.

cheers!  
axel.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [June 24, 2019, 1:02pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144/2 "2019-06-24T13:02:04Z")

</div>

> [@axel](#):
>
> which is abysmally short and started to really annoy me 🙂 .

30 minutes is actually the default session timeout for servlet containers 😉

> [@axel](#):
>
> so … long story short - there is not a single file editor in the docker container. and I can’t install one, cause apt-get update is broken.

That’s weird.

> [@axel](#):
>
> is that intentional?! cause it’s pretty, hm, impractical.

Definitely not intentional! Can you paste the errors you get? Thx

---

<div class="post-metadata">

**Author:** ![axel](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@axel](https://forum.xwiki.org/u/axel)\
**Post date:** [June 24, 2019, 1:05pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144/3 "2019-06-24T13:05:46Z")

</div>

ah I just fooled around with sed which got the job done I hope. I will see if the “new” container has the same behavior.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [June 24, 2019, 1:17pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144/4 "2019-06-24T13:17:33Z")

</div>

Now it’s still not convenient to edit web.xml because it’s inside the container and when you discard it, you loose your changes. What we could do is do exactly what we do for the xwiki config files and copy them to the permanent directory so that you can edit there and have our docker container start script copy the file.

Would be great to create a jira issue at [XWiki Docker images - XWiki.org JIRA](https://jira.xwiki.org/projects/XDOCKER/summary)

---

<div class="post-metadata">

**Author:** ![axel](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@axel](https://forum.xwiki.org/u/axel)\
**Post date:** [June 24, 2019, 1:56pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144/5 "2019-06-24T13:56:56Z")

</div>

done:

[https://jira.xwiki.org/browse/XDOCKER-110](https://jira.xwiki.org/browse/XDOCKER-110)

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [June 24, 2019, 1:59pm UTC](https://forum.xwiki.org/t/edit-a-file-in-the-docker-container/5144/6 "2019-06-24T13:59:46Z")

</div>

thx
