Root on Apps-Docker-Container to install editor

Is it possible to get sudo in a Apps-Docker-Container to install and use a editor.
I want to edit the paperless postgres container to change the scram-sha-256 back to md5 to get the app started again, or change the password for the user paperless so it will work with scram-sha-256.