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

docker run for busybox udhcpc: add --rm flag #248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

osmith42
Copy link

Use --rm with "docker run", so the remaining container does not consume
disk space after the command is done.

Use --rm with "docker run", so the remaining container does not consume
disk space after the command is done.
osmocom-gerrit pushed a commit to osmocom/docker-playground that referenced this pull request Feb 14, 2022
Add "--rm" to each "docker run" command, so they don't continuously fill
up disk space.

Fix this even in the pipework script. We don't use the code path there,
but by always having --rm after "docker run" (same line or next line),
a new lint script in osmo-ci I8ab9c291504475d670bdefc50c4524c5bdd4c880
can help us avoid this in the future.

In ttcn3-ggsn-test/jenkins.sh, move one existing --rm in a later line
upwards so the linter can find it.

Related: SYS#5827, OS#5099
Related: jpetazzo/pipework#248
Change-Id: I48b01c43fedf379b8a565eaab0369806d7831bd8
@jpetazzo
Copy link
Owner

Hi!

Thanks for the PR. I had missed the original notification a few years back 😅

I'm a bit on the fence about that one, because if something goes wrong, the container is going to be removed, which will prevent looking at its logs, and will be annoying from a debugging perspective. What do you think?

@osmith42
Copy link
Author

osmith42 commented Apr 3, 2024

Personally I think creating a container that does not get removed every time the script runs, is worse than that. I would suggest to rather redirect the log to a file for a better debugging experience. And maybe add a check that ensures udhcpc is actually running, and if it isn't, then print the log.

With that being said, I won't work on this pull request further, so feel free to merge or close it as you prefer 🙂

Thanks for making pipework!

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

Successfully merging this pull request may close these issues.

3 participants