mirror of
https://github.com/traefik/traefik.git
synced 2025-09-18 12:21:13 +02:00
15 lines
299 B
Go
15 lines
299 B
Go
package docker
|
|
|
|
import (
|
|
"golang.org/x/net/context"
|
|
|
|
"github.com/docker/docker/api/types"
|
|
)
|
|
|
|
// Remove removes the container
|
|
func (p *Project) Remove(containerID string) error {
|
|
return p.Client.ContainerRemove(context.Background(), containerID, types.ContainerRemoveOptions{
|
|
Force: true,
|
|
})
|
|
}
|