Open JVT038 opened 2 years ago
There are 2 ways to do this. The first is to stop the container and start an interactive container and the second is to kill the relevant processes and start afresh.
docker stop protonmail-bridge
docker run --rm -it -v protonmail:/root shenxn/protonmail-bridge init
Welcome to ProtonMail Bridge interactive shell
___....___
^^ __..-:'':__:..:__:'':-..__
_.-:__:.-:'': : : :'':-.:__:-._
.':.-: : : : : : : : : :._:'.
_ :.': : : : : : : : : : : :'.: _
[ ]: : : : : : : : : : : : : :[ ]
[ ]: : : : : : : : : : : : : :[ ]
:::::::::[ ]:__:__:__:__:__:__:__:__:__:__:__:__:__:[ ]:::::::::::
!!!!!!!!![ ]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![ ]!!!!!!!!!!!
^^^^^^^^^[ ]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[ ]^^^^^^^^^^^
[ ] [ ]
[ ] [ ]
jgs [ ] [ ]
~~^_~^~/ \~^-~^~ _~^-~_^~-^~_^~~-^~_~^~-~_~-^~_^/ \~^ ~~_ ^
>>>
info
in the interactive shell. Once done, exit the container and restart your main daemonised container.exit
docker restart protonmail-bridge
docker exec -ti protonmail-bridge /bin/bash
ps aux | grep [b]ridge | awk '{print $2}' | xargs -I {} kill -9 {}
./entrypoint.sh init
Welcome to ProtonMail Bridge interactive shell
___....___
^^ __..-:'':__:..:__:'':-..__
_.-:__:.-:'': : : :'':-.:__:-._
.':.-: : : : : : : : : :._:'.
_ :.': : : : : : : : : : : :'.: _
[ ]: : : : : : : : : : : : : :[ ]
[ ]: : : : : : : : : : : : : :[ ]
:::::::::[ ]:__:__:__:__:__:__:__:__:__:__:__:__:__:[ ]:::::::::::
!!!!!!!!![ ]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![ ]!!!!!!!!!!!
^^^^^^^^^[ ]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[ ]^^^^^^^^^^^
[ ] [ ]
[ ] [ ]
jgs [ ] [ ]
~~^_~^~/ \~^-~^~ _~^-~_^~-^~_^~~-^~_~^~-~_~-^~_^/ \~^ ~~_ ^
>>>
info
in the interactive shell. Once done, exit the interactive shell and you are good to go!Hi! First of all thanks for the awesome image, it's so great that the bridge generated password persists across container restarts!
I too would love to have a way to interact with the console every now and then. However, I find it a bit unhandy to having to stop the container, run it with init, stop and remove again and restart the bridge. Isn't there a way to attach to the running bridge service? I suppose the difficulty arises from the faketty
?
Cheers
Hi, I want to add a new client to the protonmail-bridge container, however I don't know the password. How do I get back into the protonmail-cli and fetch my account info?