i want to run n8n in docker locally but it is showing this error There is a deprecation related to your environment variables. Please take the recommended actions to update your configuration:
N8N_RUNNERS_ENABLED -> Running n8n without task runners is deprecated. Task runners will be turned on by default in a future version. Please set N8N_RUNNERS_ENABLED=true to enable task runners now and avoid potential issues in the future. Learn more: https://docs.n8n.io/hosting/configuration/task-runners/
[license SDK] Skipping renewal on init because renewal is not due yet or cert is not initialized
Running n8n in Docker locally is a great way to utilize this powerful workflow automation tool. The message you're seeing is a deprecation warning rather than a critical error, but it's important to address it to ensure future compatibility. Here’s a step-by-step guide to resolve the deprecation warning and successfully run n8n in Docker.
Step 1: Understanding the Deprecation Warning
The warning indicates that running n8n without task runners is deprecated. Task runners will be enabled by default in future versions. To avoid issues, you should explicitly enable task runners by setting the environment variable N8N_RUNNERS_ENABLED=true.
Step 2: Modifying Your Docker Configuration
To set the N8N_RUNNERS_ENABLED environment variable, you need to modify your Docker run command or your docker-compose.yml file.
Using docker run
If you are running n8n using the docker run command, modify it as follows:
sh
docker run -d \
--name n8n \
-p 5678:5678 \
-e N8N_BASIC_AUTH_ACTIVE=true \
-e N8N_BASIC_AUTH_USER=your-username \
-e N8N_BASIC_AUTH_PASSWORD=your-password \
-e N8N_RUNNERS_ENABLED=true \ # Add this line to enable task runners
n8nio/n8n
Using docker-compose
If you are using a docker-compose.yml file modify it to include the N8N_RUNNERS_ENABLED environment variable
After modifying the docker-compose.yml file, you need to re-deploy the stack.
sh
docker-compose down
docker-compose up -d
Step 3: Verify the Configuration
Stop the current n8n container (if running):
sh
docker stop n8n
docker rm n8n
Run the modified command or re-deploy the docker-compose.yml file.
Check the logs to ensure the warning is resolved:
sh
docker logs n8n
You should no longer see the deprecation warning about N8N_RUNNERS_ENABLED.
Step 4: Accessing n8n
Open your web browser and navigate to http://localhost:5678. You should see the n8n editor. Log in using the credentials you provided (your-username and your-password).
Additional Information
License SDK Message: The message [license SDK] Skipping renewal on init because renewal is not due yet or cert is not initialized is informational and indicates that the license renewal is not currently due. This can be ignored unless you are using an enterprise license.
Version: You are running n8n version 1.100.1, which is up to date as of this writing. Always ensure you are running a supported version by checking the n8n release notes.
By following these steps you should have a working n8n instance running locally in Docker without any deprecation warnings.