Cannot exit from docker logs -f <container> in jenkins pipeline

217 views Asked by At

By adding this command docker logs -f <container>, able to print the docker logs, but it is not exiting from this command after the server is running. I have other commands that have to be run after the docker run, but the logs command is not exiting. We can exit the terminal in local, but how can I exit this and run the remaining shell script in jenkins pipeline automatically. Also, tried docker logs -f --until=30s <container>, but this is not even printing the logs in jenkins pipeline.

0

There are 0 answers