Finding a string in docker logs of container

前端 未结 8 1146
南方客
南方客 2021-01-30 01:21

What is the best way to find a specific string in the logs of a docker container? Let\'s say I want to see all requests, that are made in the \"nginx\" docker image that came fr

8条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 02:01

    As vim fan I prefer to use less and search with /

    docker logs nginx 2>&1 | less
    

提交回复
热议问题