Docker Community Forums

Share and learn in the Docker community.

Need help running searx on win 10 (ps newbie here)

What am i doing wrong?

PS C:\Windows\system32> export PORT=80

docker pull searx/searx
docker run --rm -d -v ${PWD}/searx:/etc/searx -p $PORT:8080 -e BASE_URL=http://localhost:$PORT/ searx/searx
export : The term ‘export’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • export PORT=80
  •   + CategoryInfo          : ObjectNotFound: (export:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

Using default tag: latest
latest: Pulling from searx/searx
339de151aab4: Pull complete
7aaa6b4923dc: Pull complete
317e7e8d2782: Pull complete
ea9b5e252cab: Pull complete
2677a13b5394: Pull complete
72f77547c22d: Pull complete
Digest: sha256:3dbb3a6d94198a5e95ceb26227c2f492b640b36944dee90077b8c713377cbefb
Status: Downloaded newer image for searx/searx:latest
docker.io/searx/searx:latest
docker: Invalid containerPort: -e.
See ‘docker run --help’.

PS C:\Windows\system32> set PORT=80

docker pull searx/searx
docker run --rm -d -v ${PWD}/searx:/etc/searx -p $PORT:8080 -e BASE_URL=http://localhost:$PORT/ searx/searx
Using default tag: latest
latest: Pulling from searx/searx
Digest: sha256:3dbb3a6d94198a5e95ceb26227c2f492b640b36944dee90077b8c713377cbefb
Status: Image is up to date for searx/searx:latest
docker.io/searx/searx:latest
docker: Invalid containerPort: -e.
See ‘docker run --help’.
PS C:\Windows\system32>

docker run --rm -d -v ${PWD}/searx:/etc/searx -p $PORT:8080 -e BASE_URL=http://localhost:$PORT/ searx/searx
docker: Invalid containerPort: -e.
See ‘docker run --help’.
PS C:\Windows\system32>
PS C:\Windows\system32> wsl -l -v
NAME STATE VERSION

  • docker-desktop Running 2
    docker-desktop-data Running 2
    PS C:\Windows\system32>

docker run --rm -d -v ${PWD}/searx:/etc/searx -p $PORT:8080 -e BASE_URL=http://localhost:$PORT/ searx/searx
“-P” is the answer