This commit is contained in:
Nate Jones 2018-04-16 17:08:57 -07:00
parent 51c099c18c
commit 4c4b3c154a

View file

@ -1,8 +1,8 @@
package main
import (
"github.com/fsouza/go-dockerclient"
"github.com/dustin/go-humanize"
"github.com/fsouza/go-dockerclient"
"bytes"
"crypto/sha256"
@ -513,10 +513,10 @@ func SanitizeCommand(CommandStr string,MaxLength int) string {
temp := CommandStr
// remove prefixes that don't add meaning
if(strings.HasPrefix(temp,"/bin/sh -c")) {
if strings.HasPrefix(temp, "/bin/sh -c") {
temp = strings.TrimSpace(temp[10:])
}
if(strings.HasPrefix(temp,"#(nop)")) {
if strings.HasPrefix(temp, "#(nop)") {
temp = strings.TrimSpace(temp[6:])
}
@ -530,7 +530,6 @@ func SanitizeCommand(CommandStr string,MaxLength int) string {
return truncate(temp, MaxLength)
}
func init() {
parser.AddCommand("images",
"Visualize docker images.",