Skip to content

get container logs: "tail" parameter not valid #722

Answered by cristianrgreco
sannaroby asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sannaroby, the Docker log docs say:

Passing a negative number or a non-integer to --tail is invalid and the value is set to all in that case.

I'm not familiar with kubedock but it seems it doesn't behave the same way. Perhaps a PR to change the default of -1 to all (https://github.com/NuShoSinkuPomogliTebeTvoiSankcii/testcontainers-node/blob/cb56edabcc8e686e72da4a02f05120b1f021a398/packages/testcontainers/src/container-runtime/clients/container/docker-container-client.ts#L165) would do it.

This was added recently, so as a workaround version 10.6.0 should work for you.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sannaroby
Comment options

Answer selected by sannaroby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants