New local Installation issues Docker, N8N,Nginx on Windows

Trying to get N8N up and running via docker.
i originally had n8n running via npm and needed webhook, so installed Docker and nginx and it worked partially. was having connection issues
Uninstalled n8n via npm and now trying to install with docker to use same space as Nginx.

have a doamin pointing to my local computer and ports are forwarded i can connect to nginx (and previously installed n8n)

I followed the Instructions here
https://docs.n8n.io/hosting/installation/docker/

installed latest Docker desktop for Windows x64
then created docker-compose.yml for the nginx install from here
https://nginxproxymanager.com/setup/
it’s running fine @ (http://127.0.0.1:81)

trying to install n8n causes issues


PS D:\Files\sourcecode\n8nv1> docker volume create n8n_data
n8n_data
PS D:\Files\sourcecode\n8nv1> docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n
**[FATAL tini (7)] exec /docker-entrypoint.sh failed: Exec format error**

I’m a windows guy, so I don’t know much about docker/linux.

Information on your n8n setup

  • n8n version: Latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):?
  • Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • Operating system:Win10

This error typically occurs when there’s an issue with the docker-entrypoint.sh file or the environment it’s being executed in.

Here are some reasons the command might fail:

File Format Issue: If the docker-entrypoint.sh file was created or edited on a Windows system, it might have Windows-style line endings (CRLF) instead of Unix-style (LF).
You can fix this by converting the file to Unix format using tools like dos2unix or by saving it with the correct line endings in your text editor.

Missing Shebang: Ensure the first line of the docker-entrypoint.sh file is a valid shebang, such as #!/bin/bash or #!/bin/sh, depending on the shell you want to use.

Incorrect Path: Verify that the docker-entrypoint.sh file is located at the correct path specified in your Dockerfile or container configuration.

Architecture Mismatch: If the container’s base image is for a different architecture (e.g., ARM vs. x86), the script might fail to execute. Ensure the base image matches your system’s architecture.

yes I found those solutions as well for other similar items.

But this is during the installation process. I have no local files to edit.
How do I know where to access said files.

I’m a windows user on a windows computer. How would I accomplish such tasks?

I opened a terminal within docker desktop, but that just opens another Powershell terminal. If i knew where the windows were on windows i would open notepad to edit them, but aren’t they running in a virtual docker volume?

Allright, one question before anything else have you made sure to install the n8n image in Docker?

This error with docker-entrypoint.sh could be triggered by the run command not being able to find it. Hence the question, dit you install the image thru Docker Desktop?

docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

I ran this command as the instructions stated.
if I go to docker desktop and look at images i have two images listed.

jc21/nginx-proxy-manager
docker.n8n.io/n8nio/n8n

I click on the pull option and it returns
Status: Image is up to date for docker.n8n.io/n8nio/n8n:latest

also i’ve deleted it from docker, created an updated yaml
that recreates it, but still give me the same error.


services:
  app:
    image: 'docker.io/jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
  
  n8n:
    image: 'docker.n8n.io/n8nio/n8n'
    restart: unless-stopped
    ports:
      - "5678:5678"
    environment:
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - N8N_PUSH_BACKEND=websocket
      - N8N_PROXY_HOPS=1
    volumes:
      - n8n_data:/home/node/.n8n

volumes:
  n8n_data:



This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.