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
- Docker: How to delete all local Docker images
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- How do I pass environment variables to Docker containers?
- Docker error : no space left on device
- Error with pre-create check: “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- “OSError: [Errno 8] Exec format error” when trying to run simple flask app in a docker container
- denied: requested access to the resource is denied : docker
- What is the difference between CMD and ENTRYPOINT in a Dockerfile?
- What is the difference between the ‘COPY’ and ‘ADD’ commands in a Dockerfile?
- docker push error “denied: requested access to the resource is denied”
- How to uninstall Docker completely from a Mac?
- Where are Docker images stored on the host machine?
- How to force Docker for a clean build of an image
- Can’t connect to docker from docker-compose
- What is the result of making log4j additivity equals to true or false?
- 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
- 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”
- Adding message to assert
- docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’
- How to easily print ascii-art text?
- docker: “build” requires 1 argument. See ‘docker build –help’
- 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
- Retrieve last 100 lines logs
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- E/Surface﹕ getSlotFromBufferLocked: unknown buffer: 0xab7519c0
- kubectl get pods shows ErrImagePull
- Change directory command in Docker?
- Docker container will automatically stop after “docker run -d”
- How to search images from private 1.0 registry in docker?
- No handlers could be found for logger
- Docker compose, running containers in net:host
- WP in Docker – cannot install plugin or upgrade WP
- What is the best way to monitor PHP functions/executions?
- How to stop certain warning logging in error.log?
- Run WP-CLI using PHP
- Core framework/helpers for logging stuff?
- Keep Users Logged In As Long As I Like
- Does the debug.log do log rotation?
- Docker compose with wordpress:cli-php7.4 stalls on ‘The site you have requested is not installed’?
- Get WP CLI to hide debug warnings and notices in JSON output, same setting as website
- WordPress development using Docker – how to share directories? [closed]
- wp-admin Redirects to Docker Container Name
- docker on windows 10 with VVV [closed]
- How to update wp-config file in Docker
- Is there a way to see history of WordPress database changes?
- Custom location for attached images
- Same log message keeps on printing to debug.log file thousand of times
- wp-admin remove part of the url
- buddypress activity social share
- Install with docker – can’t access port
- Debugging high CPU usage during periods of inactivity
- Log Author Actions
- Several times request to load plugins when sending one request
- Sidebar button click redirect when user is not logged in instead displays it
- How and where are the provisioning script set up in WordPress?
- WordPress docker with empty responses to HTTP requests
- Debugging – logging database queries
- IP addresses to block to stop WP auto-update?
- Configuring Xdebug with docker compose
- WordPress REST API not working on localhost
- Duplicator Pro plugin with Docker on local?
- How to queue API requests with PHP in WordPress?
- Plugin Update History
- WordPress /wp-admin redirect to wrong port in docker
- My account staying logged when the browser closed
- error log is going to the wrong location, WP_DEBUG_LOG is ignored
- WordPress docker page is missing VIRTUAL_HOST variable
- WordPress Multisite VMware copy for dev use not allowing loggin
- Too many redirects error when change of base url
- Debug info from request handler
- Dockerized WordPress is having Nginx Proxy Issues
- How to remove an image tag in Docker without removing the image itself?
- How to add a timestamp to bash script log?
- Multiple commands in Docker CMD directive
- Why isn’t ifconfig available in Ubuntu Docker container?
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]
- Trouble Finding Error Logs in wp-env