It depends on your OS. Here are the few locations, with commands for few Operating Systems:
- Ubuntu (old using upstart ) –
/var/log/upstart/docker.log
- Ubuntu (new using systemd ) –
sudo journalctl -fu docker.service
- Amazon Linux AMI –
/var/log/docker
- Boot2Docker –
/var/log/docker.log
- Debian GNU/Linux –
/var/log/daemon.log
- CentOS –
/var/log/message | grep docker
- CoreOS –
journalctl -u docker.service
- Fedora –
journalctl -u docker.service
- Red Hat Enterprise Linux Server –
/var/log/messages | grep docker
- OpenSuSE –
journalctl -u docker.service
- macOS –
~/Library/Containers/com.docker.docker/Data/log/vm/docker.log
- Windows –
Get-EventLog -LogName Application -Source Docker -After (Get-Date).AddMinutes(-5) | Sort-Object Time
, as mentioned here.
Related Posts:
- Make a Docker application write to stdout
- How can I send a message to the systemd journal from the command line?
- IIS: Where can I find the IIS logs?
- How do I convert dmesg timestamp to custom date format?
- Log.INFO vs. Log.DEBUG
- Are there any log file about Windows Services Status?
- How to view snort log files
- Configure Node.js to log to a file instead of the console
- Is it possible to run one logrotate check manually?
- Log of Heartbeat Calls
- Custom and browser agent logging in wordpress [closed]
- Logging Count of Those Who Read Whole Post (ie reach the bottom)
- Does WordPress provide different levels of logging?
- Can I hook error_log(…)?
- Debug log file with rolling datestamp in filename?
- how to make a code which save admin each time login and logout activity inside a table
- ISO Plugin: Audit Trail with Diff of Content Changes
- How to fix “VirtualBox Interface has active connections” error in Windows?
- How to fix “VirtualBox Interface has active connections” error in Windows?
- Docker: How to delete all local Docker images
- Docker: How to delete all local Docker images
- How to list containers in Docker
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- How to copy files from host to Docker container?
- How can I use environment variables in Nginx.conf
- Docker System has not been booted with systemd as init system
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- Downloading docker image for transfer to non-internet-connected machine
- Docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock
- How do I pass environment variables to Docker containers?
- Docker error : no space left on device
- python exception message capturing
- How do I get into a Docker container’s shell?
- Copy directory to another directory using ADD command
- Copy directory to another directory using ADD command
- Error with pre-create check: “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- Error with pre-create check: “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- Error “The input device is not a TTY”
- “OSError: [Errno 8] Exec format error” when trying to run simple flask app in a docker container
- Copy directory to another directory using ADD command
- What is the difference between a Docker image and a container?
- Console logging for react?
- Brew install docker does not include docker engine?
- denied: requested access to the resource is denied : docker
- What is the difference between CMD and ENTRYPOINT in a Dockerfile?
- docker : invalid reference format
- What is the difference between the ‘COPY’ and ‘ADD’ commands in a Dockerfile?
- Failed to get D-Bus connection: Operation not permitted
- docker push error “denied: requested access to the resource is denied”
- How to uninstall Docker completely from a Mac?
- How to easily install and uninstall docker on MacOs
- Docker can’t connect to docker daemon
- docker command not found even though installed with apt-get
- Where are Docker images stored on the host machine?
- Docker: Having issues installing apt-utils
- How to force Docker for a clean build of an image
- Docker how to change repository name or rename image?
- Issues while installing Docker on Windows 10 home edition
- How to fix docker: Got permission denied issue
- Can’t connect to docker from docker-compose
- How to configure logging to syslog in Python?
- What is the result of making log4j additivity equals to true or false?
- Docker: Copying files from Docker container to host
- What is the significance of log4j.rootLogger property in log4j.properties file? What happens if I don’t use this property?
- Docker error: invalid reference format: repository name must be lowercase
- installing cPickle with python 3.5
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- standard_init_linux.go:178: exec user process caused “exec format error”
- “docker build” requires exactly 1 argument(s)
- Adding message to assert
- Python/Django: log to console under runserver, log to file under Apache
- docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’
- Docker: unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx
- How does docker compare to openshift?
- Error response from daemon: getsockopt: connection refused
- How to easily print ascii-art text?
- Docker-compose container using host DNS server
- docker: “build” requires 1 argument. See ‘docker build –help’
- Correct way to detach from a container without stopping it
- What is the use of PYTHONUNBUFFERED in docker file?
- build context for docker image very large
- How to have ‘git log’ show filenames like ‘svn log -v’
- Docker – Name is already in use by container
- Docker: How to clear the logs properly for a Docker container?
- Docker hv-sock proxy (vsudd) is not reachable windows
- Why am I getting an RTNETLINK Operation Not Permitted when using Pipework with Docker containers?
- How can I expose more than 1 port with Docker?
- Docker – Bind for 0.0.0.0:4000 failed: port is already allocated
- Why does “docker attach” hang?
- How to get IP address of running docker container
- Retrieve last 100 lines logs
- Retrieve last 100 lines logs
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- Running docker container : iptables: No chain/target/match by that name
- Where does linux store my syslog?
- How to remove old Docker containers
- kubectl get pods shows ErrImagePull
- HyperV is not available on Home editions
- Change directory command in Docker?