วิธีการติดตั้ง Docker เพื่อเริ่มต้น n8n เท่านั้น
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.
-
Choose Your Operating System
- Docker is compatible with Windows, macOS, and various Linux distributions. Ensure you select the version that matches your OS.
-
Download Docker
- Visit the official Docker website: Docker Download
- Click the download button for your operating system.
-
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.
-
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.
-
Open Terminal or Command Prompt
- Make sure Docker is running.
-
Run the Pull Command
- Execute the following command to download the n8n image:
docker pull n8nio/n8n
- Execute the following command to download the n8n image:
Step 3: Run n8n in Docker
Now that you've pulled the n8n image, it's time to run it.
-
Create a Docker Network (Optional)
- To manage connections between containers, you can create a Docker network:
docker network create n8n-network
- To manage connections between containers, you can create a Docker network:
-
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
andyour_password
with your desired authentication credentials.
- Use the following command to start the n8n container:
-
Access n8n
- Open your web browser and go to
http://localhost:5678
. - Log in with the credentials you set in the previous step.
- Open your web browser and go to
Step 4: Explore n8n Features
Once you've set up n8n, take some time to explore its features.
-
Create Workflows
- Begin creating automated workflows using the visual interface.
-
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!