วิธีการติดตั้ง Docker เพื่อเริ่มต้น n8n เท่านั้น

3 min read 3 days ago
Published on Aug 31, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial guides you through the process of installing Docker to set up n8n, an automation platform that requires no coding skills. By following these steps, you'll be ready to create automated workflows with n8n.

Step 1: Install Docker

To start using n8n, you first need to install Docker on your machine.

  1. Choose Your Operating System

    • Docker is compatible with Windows, macOS, and various Linux distributions. Ensure you select the version that matches your OS.
  2. Download Docker

    • Visit the official Docker website: Docker Download
    • Click the download button for your operating system.
  3. Install Docker

    • Open the downloaded file and follow the installation prompts.
    • For Windows users, you may need to enable the WSL 2 feature during installation.
  4. Verify Installation

    • Open a command prompt or terminal.
    • Run the following command:
      docker --version
      
    • If Docker is installed correctly, you will see the version number displayed.

Step 2: Pull the n8n Docker Image

After installing Docker, the next step is to download the n8n image.

  1. Open Terminal or Command Prompt

    • Make sure Docker is running.
  2. Run the Pull Command

    • Execute the following command to download the n8n image:
      docker pull n8nio/n8n
      

Step 3: Run n8n in Docker

Now that you've pulled the n8n image, it's time to run it.

  1. Create a Docker Network (Optional)

    • To manage connections between containers, you can create a Docker network:
      docker network create n8n-network
      
  2. Run the n8n Container

    • Use the following command to start the n8n container:
      docker run -d --name n8n \
        -p 5678:5678 \
        -e N8N_BASIC_AUTH_USER=your_username \
        -e N8N_BASIC_AUTH_PASSWORD=your_password \
        --network n8n-network \
        n8nio/n8n
      
    • Replace your_username and your_password with your desired authentication credentials.
  3. Access n8n

    • Open your web browser and go to http://localhost:5678.
    • Log in with the credentials you set in the previous step.

Step 4: Explore n8n Features

Once you've set up n8n, take some time to explore its features.

  1. Create Workflows

    • Begin creating automated workflows using the visual interface.
  2. Integrate with Apps

    • Connect to various applications and services to automate tasks.

Conclusion

You have successfully installed Docker and set up n8n for automation without coding. Now you can start building your automated workflows. If you encounter any issues or wish to expand your knowledge, refer to the n8n documentation for further guidance. Happy automating!