Day 1 - How to Run n8n with Docker: Setup Self-Hosted n8n Instance

If you want to learn:


- How do I run n8n with Docker on my computer?

- What happens when Docker downloads the n8n image for the first time?

- How do I access my self-hosted n8n instance after starting the container?

- Why do I see error messages about Python when starting n8n in Docker?

- How do I set up my n8n owner account on a local instance?

- What's the difference between localhost in Docker and localhost on my computer?


Then this lecture is for you!



In this hands-on lecture, you'll learn how to run n8n with Docker by executing your first Docker command and starting your n8n container. You'll watch the complete process of Docker downloading the n8n image from the registry when it's not found locally on your system, and understand what happens during the initial setup. The lecture walks you through interpreting Docker output messages, including migration reports and Python runner warnings that appear during container startup, explaining why these messages occur inside the container and why they don't affect your deployment.


You'll discover how to use Docker Desktop to verify your running n8n container, check the n8n_data volume for persistent data storage, and understand port mapping between your Docker container and host machine. The lecture demonstrates accessing your self-hosted n8n instance by navigating to localhost:5678 in your web browser, setting up your owner account with proper credentials, and exploring the n8n interface running locally on your computer. You'll learn the key difference between the container's internal localhost and your host machine's localhost, and how Docker maps port 5678 to enable browser access to your n8n instance. By the end, you'll have a fully functional self-hosted n8n workflow automation tool running in a Docker container with persistent storage configured.