question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow (or document) Container.push behavior on overwrite.

See original GitHub issue

Issue

Container.push currently does not allow file overwriting, but the behavior is not documented in docs.

Sugestion

  1. Add a boolean overwrite flag that when True test if path exists and remove it before pushing.
  2. Update docs about overwrite behavior.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rwcarlsencommented, May 16, 2022

It’s probably worth mentioning in docs somewhere that bind mounts for files will interfere with workload-side file operations.

0reactions
paulomachcommented, May 16, 2022

That’s the issue. There other files of interest that are bind mounts, like /etc/hosts. Having the push implementation on pebble to copy over the original file can make it work (instead of mv/rename). But I don’t know if there’s any drawbacks on doing that. Should that limitation (overwrite bind mounts) be documented?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to prevent overwriting existing tags/images in ...
I got a pipeline in Azure Devops which has a task that pushes a Docker image to an Azure Container Registry.
Read more >
Push rules - GitLab Docs
Override global push rules per project · On the top bar, select Main menu > Projects and find your project. · On the...
Read more >
overscroll-behavior - CSS: Cascading Style Sheets | MDN
This is the inner container. Focus on this container, scroll to the bottom and when you reach the bottom keep scrolling. If you...
Read more >
docker commit - Docker Documentation
By default, the container being committed and its processes will be paused while the image is committed. This reduces the likelihood of encountering...
Read more >
Change Trackpad settings on Mac - Apple Support
Choose the gesture to use to move between pages in a document. Swipe between full-screen applications. Choose the gesture to use to move...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found