Skip to content
Snippets Groups Projects
Commit 380e9ac8 authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Merge branch 'main' of gitlab.com:uafrica/mage

parents 4288f330 63b0c056
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ func stopRunningSamDocker() { ...@@ -118,7 +118,7 @@ func stopRunningSamDocker() {
panic(err) panic(err)
} }
containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{}) containers, err := cli.ContainerList(context.Background(), types.ContainerListOptions{All: true})
if err != nil { if err != nil {
panic(err) panic(err)
} }
...@@ -140,7 +140,11 @@ func stopRunningSamDocker() { ...@@ -140,7 +140,11 @@ func stopRunningSamDocker() {
if err != nil { if err != nil {
panic(err) panic(err)
} }
log.Printf("Stopped container %s\n", container.ID) err = cli.ContainerRemove(context.Background(), container.ID, types.ContainerRemoveOptions{})
if err != nil {
panic(err)
}
log.Printf("Stopped and removed container %s\n", container.ID)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment