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

ufw-docker status command produces grep warnings #128

Open
jagaimoworks opened this issue Jan 2, 2025 · 1 comment
Open

ufw-docker status command produces grep warnings #128

jagaimoworks opened this issue Jan 2, 2025 · 1 comment

Comments

@jagaimoworks
Copy link

When calling ufw-docker status I get the following output:

grep: warning: stray \ before /
grep: warning: stray \ before /

This is on Arch with ufw-docker-git from the AUR and grep version 3.11.

@bardimnik
Copy link

Hi! I used artificial intelligence ( duck.ai ). Here's what he advised me. Find the lines in the ufw-docker file that you downloaded (installed):

ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\\( ${NETWORK}\\)\$" ||  \
ufw status numbered | grep "# allow ${INSTANCE_NAME}\\( ${INSTANCE_PORT}\\/${PROTO}\\)\$" || \
ufw status numbered | grep "# allow ${INSTANCE_NAME}\$"

fix them so that it looks like this:

ufw status numbered | grep "# allow ${INSTANCE_NAME}(${INSTANCE_PORT}/${PROTO})(${NETWORK})$" ||  \
ufw status numbered | grep "# allow ${INSTANCE_NAME}(${INSTANCE_PORT}/${PROTO})$" || \
ufw status numbered | grep "# allow ${INSTANCE_NAME}$"

This error does not appear after this edit.

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

2 participants