-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command history cleans up all the time #289
Comments
@ihor-sviziev if you will use |
+1 for persisting the command history. |
@Den4ik looks like I see this behavior on WSL2 + the following solution for ssh agent. if ! pgrep ssh-agent > /dev/null; then
rm -f /tmp/ssh-auth-sock
eval "$(ssh-agent -s -a /tmp/ssh-auth-sock)"
ssh-add
else
export SSH_AUTH_SOCK=/tmp/ssh-auth-sock
fi Seems like on Mac OS we have static SSH_AUTH_SOCK, that's why we don't have such an issue, but we do have it on WSL2 and Ubuntu 20.04 (didn't look for a solution for clean Ubuntu) |
@ihor-sviziev Interesting workaround. That would explain why I hadn't experienced the behavior myself, primary driver being Mac OS only occasionally working on my Linux box. Using start vs up would prevent the re-create as well then, since it docker-compose doesn't look for changes in the container spec when only start has been requested. Sounds like we've got the best of both worlds: workaround to prevent re-create and persisted bash history thanks to the PR from @Den4ik making it happen. |
@ihor-sviziev interesting. I didn't work on windows 10 years, but for now I really want to check it )) |
One interesting thing - today I had the same issue on Ubuntu 20.04, but with known hosts. After reboot - the php-fpm container was re-created and the I checked what was the output of The last digit of IP was changed from |
I created a PR for fixing similar issue with the |
Hi,
I found that when I'm rebooting my computer and then running
warden env up
- it all the time re-creates php-fpm container. As a result, the entire command history in thewarden shell
is getting lost.It would be great if we could persist command history OR do not re-create the php-fpm container when it's not really needed (for instance new image was pulled, or some config has changed, etc.)
The text was updated successfully, but these errors were encountered: