Closed jackra1n closed 3 months ago
I realized one (not so pretty) solution is that i can redefine all the table formats as a alias
alias dops='dops --format "table {{.ID}}\\t{{.Names}}\\t{{.ImageName}}\\t{{.Tag}}\\t{{.ShortCommand}}\\t{{.CreatedAt
}}\\t{{.State}}\\t{{.Status}}\\t{{.LongPublishedPorts}}\\t{{.Networks}}\\t{{.IP}}" --format "table {{.ID}}\\t{{.Name
s}}\\t{{.ImageName}}\\t{{.Tag}}\\t{{.ShortCommand}}\\t{{.CreatedAt}}\\t{{.State}}\\t{{.Status}}\\t{{.LongPublishedPo
rts}}\\t{{.IP}}" --format "table {{.ID}}\\t{{.Names}}\\t{{.ImageName}}\\t{{.Tag}}\\t{{.CreatedAt}}\\t{{.State}}\\t{{
.Status}}\\t{{.LongPublishedPorts}}\\t{{.IP}}" --format "table {{.ID}}\\t{{.Names}}\\t{{.ImageName}}\\t{{.Tag}}\\t{{
.CreatedAt}}\\t{{.State}}\\t{{.Status}}\\t{{.PublishedPorts}}\\t{{.IP}}" --format "table {{.ID}}\\t{{.Names}}\\t{{.I
mageName}}\\t{{.Tag}}\\t{{.CreatedAt}}\\t{{.State}}\\t{{.Status}}\\t{{.PublishedPorts}}" --format "table {{.ID}}\\t{
{.Names}}\\t{{.ImageName}}\\t{{.Tag}}\\t{{.State}}\\t{{.Status}}\\t{{.PublishedPorts}}" --format "table {{.ID}}\\t{{
.Names}}\\t{{.Tag}}\\t{{.State}}\\t{{.Status}}\\t{{.PublishedPorts}}" --format "table {{.ID}}\\t{{.Names}}\\t{{.Tag}
}\\t{{.State}}\\t{{.Status}}\\t{{.ShortPublishedPorts}}" --format "table {{.ID}}\\t{{.Names}}\\t{{.State}}\\t{{.Stat
us}}"\\t{{.PublishedPorts}} --format "table {{.ID}}\\t{{.Names}}\\t{{.State}}\\t{{.Status}}" --format "table {{.ID}}
\\t{{.Names}}\\t{{.State}}" --format "table {{.Names}}\\t{{.State}}" --format "table {{.Names}}" --format "table {{.
ID}}"'
I added support for a config file in ~/.config/dops.conf
.
Should be included in the next release
thank you!
I was wondering if there is some config file or something where I can write what format in what order is used when using better docker ps. I know that I can format it like shown in this comment https://github.com/Mikescher/better-docker-ps/issues/2#issuecomment-1365184997 but I would like to change the default order permanently. Thanks