mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
feat: check container config before update (#925)
* feat: check container config before restart * fix: only skip when hostconfig and config differ * fix: update test mocks to not fail tests * test: add verify config tests
This commit is contained in:
parent
fdf6e46e7b
commit
12467712a1
6 changed files with 151 additions and 13 deletions
7
pkg/container/errors.go
Normal file
7
pkg/container/errors.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package container
|
||||
|
||||
import "errors"
|
||||
|
||||
var errorNoImageInfo = errors.New("no available image info")
|
||||
var errorNoExposedPorts = errors.New("exposed ports does not match port bindings")
|
||||
var errorInvalidConfig = errors.New("container configuration missing or invalid")
|
||||
Loading…
Add table
Add a link
Reference in a new issue