DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Docker Model Runner: Streamlining AI Deployment for Developers
  • A Guide to Container Runtimes
  • Gemma 3: Unlocking GenAI Potential Using Docker Model Runner
  • Docker vs Kubernetes: Which to Use and When?

Trending

  • Mastering Advanced Traffic Management in Multi-Cloud Kubernetes: Scaling With Multiple Istio Ingress Gateways
  • AI Speaks for the World... But Whose Humanity Does It Learn From?
  • Driving DevOps With Smart, Scalable Testing
  • Ensuring Configuration Consistency Across Global Data Centers
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Docker Daemon Log With Docker for Mac

Docker Daemon Log With Docker for Mac

This tutorial gives you several quick step-by-step methods of setting up logging on Docker for Mac, which is now in general beta.

By 
Arun Gupta user avatar
Arun Gupta
·
Jul. 13, 16 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
6.0K Views

Join the DZone community and get the full member experience.

Join For Free

Did you know that Docker for Mac is now in general beta?

docker-for-mac

What is Docker for Mac?

Docker for Mac is a native Mac application architected from scratch, with a native user interface and auto-update capability, deeply integrated with OS X native virtualization

If you are using Docker Machine, then you can SSH to the machine using docker-machine ssh <machine-name> command and find the logs at /var/log/docker.

As Docker for Mac provides a native integration with Mac, the logs also can be found using the natural tools.

Mac Console for Docker Daemon Logs

Console is a utility available in the Applications -> Utilities log viewer included with macOS. It allows users to search through all of the system's logged messages and can alert the user when certain types of messages are logged. The console allows you to read the system logs, help find certain ones, monitor them, and filter their contents.

File -> New System Log Quer

docker-logs-console1


Give the query a name and set Sender to docker. Click on OK to save the query:

docker-logs-console2


Now the daemon logs can be easily seen here.

Now Console Log Query can be used to search logs, filter the results in various ways, and create reports.

Docker Daemon Log using CLI

You are not a GUI type of person and prefer a CLI approach, then use syslog CLI. The command to see Docker daemon log is:

syslog -k Sender Docker

And it shows the output as:

Jul611:49:17Aruns-MacBook-Pro Docker[78]<Notice>:com.docker.vmnetd starting
Jul816:37:52Aruns-MacBook-Pro Docker[11733]<Notice>:Application version:1.12.0-rc3-beta18(9969)
Jul816:37:52Aruns-MacBook-Pro Docker[11733]<Notice>:OSX Version:Version10.11.3(Build15D21)
Jul816:37:52Aruns-MacBook-Pro Docker[11733]<Notice>:migrator:start migration process

...

Jul816:38:49Aruns-MacBook-Pro Docker[11811]<Notice>:transfused:mount/bin/fusermount-oallow_other,max_read=1048576,subtype=osxfs/Mac
Jul816:38:49Aruns-MacBook-Pro Docker[11812]<Notice>:Using protocol TwoThousand msize8192
Jul816:38:57Aruns-MacBook-Pro Docker[11814]<Notice>:Docker isresponding
Jul816:38:57Aruns-MacBook-Pro Docker[11813]<Notice>:VM started at2016-07-0816:38:57-0700PDT
Jul816:38:57Aruns-MacBook-Pro Docker[11795]<Notice>:dockerState=Starting


Use syslog -help to find all the options for this CLI.

Docker Daemon Log File

If you really want the hardcore way, then the log files are available at:

~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log.

Check out the complete details here.

What is holding you back from using Docker for Mac?

Enjoy?

Source: blog.couchbase.com/2016/july/docker-daemon-log-mac

Docker (software)

Published at DZone with permission of Arun Gupta, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Docker Model Runner: Streamlining AI Deployment for Developers
  • A Guide to Container Runtimes
  • Gemma 3: Unlocking GenAI Potential Using Docker Model Runner
  • Docker vs Kubernetes: Which to Use and When?

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!