{"id":2246,"date":"2023-08-05T10:43:43","date_gmt":"2024-03-10T15:53:48","guid":{"rendered":""},"modified":"2025-02-02T00:46:18","modified_gmt":"2025-02-01T23:46:18","slug":"how-to-install-dozzle-real-time-log-viewer-for-docker-containers-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-dozzle-real-time-log-viewer-for-docker-containers-on-ubuntu-22-04\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Dozzle Real-Time Log Viewer for Docker Containers on Ubuntu 22.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p>Dozzle is a lightweight, real-time log viewer for Docker containers, designed to help you monitor container logs easily from your browser. It is simple to set up and can be accessed securely to provide a clear view of your Docker container activities. In this guide, we will walk you through the installation of Dozzle on Ubuntu 22.04. Whether you are deploying Dozzle on a local server or using a , this guide will help you get started.<\/p>\n<section>\n<h2>Step 1: Install Docker<\/h2>\n<p>If Docker is not already installed on your Ubuntu 22.04 system, you will need to install it first. Use the following commands to install Docker:<\/p>\n<pre><code>\r\nsudo apt update\r\nsudo apt install apt-transport-https ca-certificates curl software-properties-common -y\r\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\r\nsudo add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\"\r\nsudo apt update\r\nsudo apt install docker-ce docker-ce-cli containerd.io -y\r\n            <\/code><\/pre>\n<p>After the installation is complete, start and enable Docker to run on boot:<\/p>\n<pre><code>\r\nsudo systemctl start docker\r\nsudo systemctl enable docker\r\n            <\/code><\/pre>\n<p>Docker is now installed and running, which is necessary for deploying Dozzle, whether on a local machine or in a <a href=\"https:\/\/ie.netcloud24.com\">VPS Windows VPS Servers<\/a> environment.<\/p>\n<\/section>\n<section>\n<h2>Step 2: Install Dozzle<\/h2>\n<p>With Docker installed, you can now run Dozzle as a Docker container. Use the following command to pull and run the Dozzle container:<\/p>\n<pre><code>\r\nsudo docker run -d --name=dozzle -p 8080:8080 -v \/var\/run\/docker.sock:\/var\/run\/docker.sock dozzle\/dozzle\r\n            <\/code><\/pre>\n<p>This command runs Dozzle in detached mode (-d), maps port 8080 to your local machine, and mounts the Docker socket to allow Dozzle to access Docker container logs.<\/p>\n<p>After running the command, Dozzle will be accessible via your server&#8217;s IP address on port 8080. This setup works for both local deployments and cloud-based environments like a <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS hosting UK<\/a>.<\/p>\n<\/section>\n<section>\n<h2>Step 3: Access Dozzle<\/h2>\n<p>To access Dozzle, open your web browser and navigate to the following URL, replacing <code>your-server-ip<\/code> with your server&#8217;s actual IP address:<\/p>\n<pre><code>http:\/\/your-server-ip:8080<\/code><\/pre>\n<p>This will take you to the Dozzle web interface, where you can view logs from all running Docker containers in real time. Whether you are hosting Dozzle locally or on a <a href=\"https:\/\/ie.netcloud24.com\">Microsoft SQL VPS Windows<\/a>, this interface provides a clear view of your container logs.<\/p>\n<\/section>\n<section>\n<h2>Step 4: Secure Dozzle with SSL<\/h2>\n<p>For production environments, it is important to secure Dozzle with SSL. You can use Let&#8217;s Encrypt to obtain a free SSL certificate. First, install Certbot:<\/p>\n<pre><code>sudo apt install certbot python3-certbot-nginx -y<\/code><\/pre>\n<p>Next, create an Nginx configuration file for Dozzle:<\/p>\n<pre><code>sudo nano \/etc\/nginx\/sites-available\/dozzle.conf<\/code><\/pre>\n<p>Add the following configuration, replacing <code>your-domain.com<\/code> with your actual domain:<\/p>\n<pre><code>\r\nserver {\r\n    listen 80;\r\n    server_name your-domain.com;\r\n\r\n    location \/ {\r\n        proxy_pass http:\/\/localhost:8080;\r\n        proxy_set_header Host $host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto $scheme;\r\n    }\r\n}\r\n            <\/code><\/pre>\n<p>Enable the site and restart Nginx:<\/p>\n<pre><code>\r\nsudo ln -s \/etc\/nginx\/sites-available\/dozzle.conf \/etc\/nginx\/sites-enabled\/\r\nsudo systemctl restart nginx\r\n            <\/code><\/pre>\n<p>Now, obtain an SSL certificate using Certbot:<\/p>\n<pre><code>sudo certbot --nginx -d your-domain.com<\/code><\/pre>\n<p>Certbot will automatically configure Nginx to use SSL, securing your Dozzle instance with HTTPS. This ensures secure access to your real-time logs, whether on a local server or hosted on a <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS hosting UK<\/a> environment.<\/p>\n<\/section>\n<section>\n<h2>Step 5: View and Monitor Docker Logs<\/h2>\n<p>Once Dozzle is up and running, you can monitor real-time logs from all your Docker containers directly from the web interface. The logs are displayed clearly, allowing you to easily monitor activity, debug issues, and stay updated on the status of your containers.<\/p>\n<p>Dozzle provides a powerful yet simple interface for managing Docker logs, making it an excellent tool whether you&#8217;re working locally or on a <a href=\"https:\/\/ie.netcloud24.com\">VPS Windows VPS Servers<\/a> platform.<\/p>\n<\/section>\n<footer>\n<p>You have successfully installed Dozzle, a real-time log viewer for Docker containers, on your Ubuntu 22.04 server. For reliable and scalable hosting solutions, consider using . They offer a variety of hosting plans, including <strong>windows virtual private servers<\/strong>, <strong>windows vps hosting<\/strong>, and <strong>windows virtual dedicated server hosting<\/strong>. Whether you&#8217;re looking for <strong>windows vps italy<\/strong> or <strong>uk vps windows<\/strong> solutions, their hosting services provide the performance and flexibility needed to support your Docker environment.<\/p>\n<\/footer>\n<\/article>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Dozzle is a lightweight, real-time log viewer for Docker containers, designed to help you monitor container logs easily from your browser. It is simple to set\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2246"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2246\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}