Return a new container snapshot, with a directory removed from its filesystem
(path string, opts ...ContainerWithoutDirectoryOpts)
| 3627 | |
| 3628 | // Return a new container snapshot, with a directory removed from its filesystem |
| 3629 | func (r *Container) WithoutDirectory(path string, opts ...ContainerWithoutDirectoryOpts) *Container { |
| 3630 | q := r.query.Select("withoutDirectory") |
| 3631 | for i := len(opts) - 1; i >= 0; i-- { |
| 3632 | // `expand` optional argument |
| 3633 | if !querybuilder.IsZeroValue(opts[i].Expand) { |
| 3634 | q = q.Arg("expand", opts[i].Expand) |
| 3635 | } |
| 3636 | } |
| 3637 | q = q.Arg("path", path) |
| 3638 | |
| 3639 | return &Container{ |
| 3640 | query: q, |
| 3641 | } |
| 3642 | } |
| 3643 | |
| 3644 | // Retrieves this container without a configured docker healtcheck command. |
| 3645 | func (r *Container) WithoutDockerHealthcheck() *Container { |