
本文已收录在Github,关注我,紧跟本系列专栏文章,咱们下篇再续!
n8n创始人Jan Oberhauser寻思名字和域名时,选择 nodemation:
但不喜欢这名字那么长,每次在CLI输入这么长东西,类似k8s,最终想到'n8n'。
Docker Hub中搜索n8n:

拉取镜像:
$ docker pull n8nio/n8n:nightly
nightly: Pulling from n8nio/n8n
bc0cdc8ecc2f: Pull complete
66d634619c1c: Pull complete
f860243118e9: Pull complete
7ebb9aff85fe: Pull complete
218829d6d7f2: Pull complete
9cd9f54f6da2: Pull complete
e628b015b66d: Pull complete
4f4fb700ef54: Pull complete
f2ba0f0e632d: Pull complete
8b65ff6ceba0: Pull complete
12e7777fb0ae: Pull complete
Digest: sha256:3dd6e88d468c2245789911d6398745be410966b715a82625cd5f0e3a368d5453
Status: Downloaded newer image for n8nio/n8n:nightly
docker.io/n8nio/n8n:nightly
What's next:
View a summary of image vulnerabilities and recommendations → docker scout quickview n8nio/n8n:nightly# 给n8n创建Volumes
$ docker volume create n8n_data
# 运行:
$ docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n:nightly
javaedge@JavaEdgedeMac-mini soft % docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n:nightly
No encryption key found - Auto-generating and saving to: /home/node/.n8n/config
Initializing n8n process
n8n ready on ::, port 5678
Migrations in progress, please do NOT stop the process.
Starting migration InitialMigration1588102412422
Finished migration InitialMigration1588102412422
...
n8n Task Broker ready on 127.0.0.1, port 5679
Failed to start Python task runner in internal mode. because Python 3 is missing from this system. Launching a Python runner in internal mode is intended only for debugging and is not recommended for production. Users are encouraged to deploy in external mode. See: https://docs.n8n.io/hosting/configuration/task-runners/#setting-up-external-mode
[license SDK] Skipping renewal on init: license cert is not initialized
Registered runner "JS Task Runner" (Ll34ACNidZxH0zXurHKDH)
Version: 2.4.0
Editor is now accessible via:
http://localhost:5678
Press "o" to open in Browser.端口5678是默认的,Volumes为刚才创建的n8n_data,容器路径也是默认的/home/node/.n8n。
登录安全说明:

选择第三个,坚持这种方式:
4.2.1 删除刚才创建的n8n
sudo docker stop n8n
sudo docker rm n8n4.2.2 把N8N_SECURE_COOKIE设置false后重新启动
$ docker run -it --rm --name n8n -p 5678:5678 -e N8N_SECURE_COOKIE=false -v n8n_data:/home/node/.n8n n8nio/n8n:nightly首次登录 http://localhost:5678/,需填写邮箱、名称及密码:

弹出一个n8n用户调研的界面,别管他,直接点击Get started。

然后弹出这个免费获取高级功能许可的页面,可以填写邮箱获取免费的licence key。


打开邮箱会收到包含许可证密钥的邮件:

请注意,需要在14天内完成激活,激活后这些高级功能就可以永久免费使用了。
初始页:

不会本地部署,也可用Saas版,14天免费试用。
打开地址:https://app.n8n.cloud/login,点击Start a free trial:

获取一个14天的使用账号:

会发送一个邮箱验证码:

填写姓名、邮箱、密码及账号名称:

然后填写问卷、邀请成员和工作空间ready。最后初始页和本地部署一样。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。