Fix skipping first container in ps command

This commit is contained in:
Daniel Bulant 2021-11-30 21:00:04 +01:00 committed by GitHub
parent 192979ffcc
commit 748ba3e368
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ export const mapPsOutput = (output: string): DockerComposePsResult => {
const services = output
.split(`\n`)
.filter(nonEmptyString)
.filter((_, index) => index > 1)
.filter((_, index) => index > 0)
.map((line) => {
const [
nameFragment,