WithUIDOwner allows console I/O to work with the remapped UID in user namespace
(uid uint32)
| 57 | |
| 58 | // WithUIDOwner allows console I/O to work with the remapped UID in user namespace |
| 59 | func WithUIDOwner(uid uint32) NewTaskOpts { |
| 60 | return func(ctx context.Context, c *Client, ti *TaskInfo) error { |
| 61 | opts, err := ti.getRuncOptions() |
| 62 | if err != nil { |
| 63 | return err |
| 64 | } |
| 65 | opts.IoUid = uid |
| 66 | return nil |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // WithGIDOwner allows console I/O to work with the remapped GID in user namespace |
| 71 | func WithGIDOwner(gid uint32) NewTaskOpts { |
searching dependent graphs…