mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #39444 from tonistiigi/userns-empty
builder-next: reset identitymapping if empty
This commit is contained in:
commit
6a7ebf044c
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ type Builder struct {
|
|||
func New(opt Opt) (*Builder, error) {
|
||||
reqHandler := newReqBodyHandler(tracing.DefaultTransport)
|
||||
|
||||
if opt.IdentityMapping != nil && opt.IdentityMapping.Empty() {
|
||||
opt.IdentityMapping = nil
|
||||
}
|
||||
|
||||
c, err := newController(reqHandler, opt)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Reference in a new issue