• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openconfig / containerz
63%
master: 64%

Build:
Build:
LAST BUILD BRANCH: packaging
DEFAULT BRANCH: master
Repo Added 07 Feb 2025 04:24PM UTC
Token APh1lV8NrZa9VaU33CkJDlKH6kSi3qmUA regen
Build 257 Last
Files 83
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH start-without-autoremove
branch: start-without-autoremove
CHANGE BRANCH
x
Reset
Sync Branches
  • start-without-autoremove
  • create-plugins-location
  • custom-plugin-support
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • device_support
  • errors
  • fix-cmd-container-update
  • fix-lint
  • force-deadline
  • gnoigo
  • linterfix
  • log-list-all
  • master
  • only-stop-container
  • plugin-list-fix
  • server-options
  • start-container-shell
  • stop-response
  • tests
  • update-async-no-ctx

24 Mar 2025 12:05PM UTC coverage: 63.268% (-0.01%) from 63.282%
14034803129

Pull #29

github

brianneville
container/docker: start containers without AutoRemove

If the AutoRemove field is set to true, then:
1. StopContainer RPC calls (including the call to
StopContainer made as part of the UpdateContainer
RPC) will fail as the line
https://github.com/openconfig/containerz/blob/012a091c1/containers/docker/container_stop.go#L51
will send a stop signal, as well as triggering
the container to be removed automatically.
This will cause the subsequent
m.client.ContainerRemove call to fail with an error
as the container removal is already in process.

2. Containers cannot be started with a restart policy
(docker will fail to start the container if it has a
non-nil restart policy while AutoRemove is true.

So this field can be left as false, and the removal
is ensured by the StopContainer RPC call anyway.
Pull Request #29: container/docker: start containers without AutoRemove

1607 of 2540 relevant lines covered (63.27%)

0.71 hits per line

Relevant lines Covered
Build:
Build:
2540 RELEVANT LINES 1607 COVERED LINES
0.71 HITS PER LINE
Source Files on start-without-autoremove
  • Tree
  • List 83
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
14034803129 start-without-autoremove container/docker: start containers without AutoRemove If the AutoRemove field is set to true, then: 1. StopContainer RPC calls (including the call to StopContainer made as part of the UpdateContainer RPC) will fail as the line https://github.com/... Pull #29 24 Mar 2025 12:06PM UTC brianneville github
63.27
See All Builds (252)

Badge your Repo: containerz

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc