Skip to content
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

edit-config not edits config #27

Open
aleonov-virtru opened this issue Aug 20, 2019 · 2 comments
Open

edit-config not edits config #27

aleonov-virtru opened this issue Aug 20, 2019 · 2 comments

Comments

@aleonov-virtru
Copy link

Expected behavior

docker run rsyslog/syslog_appliance_alpine show-config show-config
displays edited config

Actual behavior

docker run rsyslog/syslog_appliance_alpine show-config show-config
displays old config

Steps to reproduce the behavior

  1. Run docker run -ti rsyslog/syslog_appliance_alpine edit-config
  2. Edit config with VIM
  3. Save config with
    edit-config - edit container config (with vi editor, press <ESC>ZZ to quit)
    as stated in help, then :wq to save and exit form VIM

Environment

  • rsyslog version: rsyslog appliance version 2018-06-26 (1530020232)
  • platform: MacOS Mojave 10.14.5
  • for configuration questions/issues, include rsyslog.conf and included config files
@endersonmaia
Copy link

you have to use docker exec instead of docker run

docker exec runs a command inside an running container, and docker run will spin up a new container

@anivle
Copy link

anivle commented Sep 3, 2019

Thanks much for your response! Did not think about this, despite it looks obvious. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants