Difference between revisions of "Docker logs"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
docker logs -f --tail 10 CONTAINER_NAME | docker logs -f --tail 10 CONTAINER_NAME | ||
+ | |||
+ | docker ps -q | [[xargs -L]] 1 docker logs | ||
--[[log-driver]]=[[journald]] | --[[log-driver]]=[[journald]] |
Revision as of 08:02, 18 April 2023
docker logs
command allows to view the logs of a container. https://docs.docker.com/engine/reference/commandline/logs/
docker logs CONTAINER_NAME 2>&1 | grep -v INFO
docker logs -f --tail 10 CONTAINER_NAME
docker ps -q | xargs -L 1 docker logs
--log-driver=journald --log-driver=json-file
Related
docker container logs
docker-compose logs
docker logs
,docker logs -f
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker run -d --log-driver=journald YOUR_CONTAINER
docker system events
journalctl -u docker
minikube logs
docker ps
- Fluent Bit
See also
- Container logging, Docker logging:
docker logs
,docker-compose logs
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
containerd
,config.toml
,containerd-shim
,runc
,journalctl -u containerd, ctr, SOCI Snapshotter
, Containerd versions
Advertising: