Does a webgui Docker Container editor exist? I can edit using docker commands in SSH, but.....

  • So I have two docker containers running 7d2d and TF2, but there will be times I'd like to edit the server cfg files.


    I appreciate I can ssh into the docker using something like


    Code
    docker exec -it tf2-dedicated nano /home/steam/tf-dedicated/tf/cfg/server.cfg


    and then make changes, but I was wondering if there is any web/gui ways.


    I also think I'm right in saying (based on research) that due to the nature of dockers being 'contained' you can't have a docker application that could edit it.


    I thought I could use something like doublecommander to click into the files, but I don't think that will work (unless I'm looking in the wrong place)


    So, is there anyway at all, I can have some form of web gui to enable me to edit simple text files within a contain for config files for games, and things like that. Like I currently do on a gameserver host I use for Minecraft (I understand it's a completely different system, I'm just using that for example)


    Thanks for your help.

    Don't jump, if you do, you'll only fall and hurt yourself.

  • use portainer webGUI

  • You should not need to edit files inside the container (as long as they are not on a named volume). The changes will be lost if they are not backed by the host file system on the next redeploy. Edit the files in the directory which is on the hosts file system you mounted into the container.


    If you know, the files you are editing inside the container are backed by the host file system, you can follow @raulfg3's advice

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • use portainer webGUI

    Unless I'm not looking in the right place, I only see a console that I can use and type the same nano command to edit the files.


    I tried using Double Commander to go to /var/lib/docker/volumes/ff827795652e1d4e0e904e9284943f01e2bef7bb4153ad8ddf9d30772855e278/_data but even with 'show hidden files' I'm unable to locate the file/folder. [yet, I can see it when accessing via SSH]


    I am new to all this (OMV5, Portainer and Dockers) and I'm predominately a windows user and a 'Hobbyist Linux user'

    I can use the SSH (and have) but I'm just looking for an easier option. One thing that gets me with Nano (being a windows user) I make a mistake typing and I by default, press CTRL and Z to undo, and it gives me the something about {fs] to get back in, and as of yet, never been able to. :(

    Don't jump, if you do, you'll only fall and hurt yourself.

  • So I have two docker containers running 7d2d and TF2, but there will be times I'd like to edit the server cfg files.


    I appreciate I can ssh into the docker using something like

    you commento on first post that apreciate to use ssh, so ssh on docker using portainer is the really easy way.



    Other WebGUI option is to install WinSCP on your PC, and access your files in a windows based enviroment: https://winscp.net/eng/download.php


    But I only recomend for files in the filesystem, not inside the docker ( is recomended to edit for example config files for transmission, or other dockers that are stored in your filesystem side).

  • Other WebGUI option is to install WinSCP on your PC, and access your files in a windows based enviroment: https://winscp.net/eng/download.php

    I see what ya mean.


    I'll have a play around, while I understand it's not recommended and I'm new to all this, I'm sure there would be a way to tweak the online guide I used or some other magical linux command to access the server.cfg from outside the docker for editing.


    But for now, like you mentioned, I can use WinSCP, now I know the location of the docker, etc and tweak and see what happens.


    It's not a critical docker (as is the whole system not to be honest, like I said, I'm just a hobbyist and learning) so I'll use WinSCP and go from there.



    Thanks for your input and advise.

    Regards

    Don't jump, if you do, you'll only fall and hurt yourself.

  • Never edit file in .../docker/volumes. The file in there should only be accessed by the docker drivers.

    if you need to edit files in this directory, you should probably mount a directory into the container .

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Never edit file in .../docker/volumes. The file in there should only be accessed by the docker drivers.

    if you need to edit files in this directory, you should probably mount a directory into the container .


    I know this, I've been told, I do plan on re-creating the image with an external reference (inside the linux filesystem) to allow me to edit the files.


    But, like I said, I'm learning, I'm trying things, when it breaks it's my fault, but I'll know exactly why it broke. Who knows in the future, I might have someone ask me the same question and I'll be able to give them the right answer.

    Don't jump, if you do, you'll only fall and hurt yourself.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!