tp-link-extender / MercuryCore

Self-hostable MMO game creation platform: build-your-own-Roblox
https://mercury2.com
The Unlicense
22 stars 8 forks source link

"command not found docker" #342

Open MrGlitchWasTaken opened 1 month ago

MrGlitchWasTaken commented 1 month ago

Describe the bug

My terminal says command not found docker when I run the last step in the instructions

Reproduction

  1. run the command
  2. says command not found

Expected behaviour

do whatever the command does

Logs

No response

System info

Bun 1.1.27

ui0ppk commented 1 month ago

you install docker? what is your os? what is the command (in full)?

MrGlitchWasTaken commented 1 month ago

you install docker? what is your os? what is the command (in full)?

i installed docker on macos

MrGlitchWasTaken commented 1 month ago

you install docker? what is your os? what is the command (in full)?

i clicked the download for mac apple silicon

ui0ppk commented 1 month ago

what was the command

MrGlitchWasTaken commented 1 month ago

what was the command

i just clicked the download button

ui0ppk commented 1 month ago

what was the command

i just clicked the download button

the command you ran to start the mercury site not the docker installer

MrGlitchWasTaken commented 1 month ago

what was the command

i just clicked the download button

the command you ran to start the mercury site not the docker installer

ah. I ran "docker compose up -d"

ui0ppk commented 1 month ago

what was the output of said command

also are you sure its docker compose up -d and not docker-compose up -d if so then run docker-compose up -d instead

MrGlitchWasTaken commented 1 month ago

what was the output of said command

also are you sure its docker compose up -d and not docker-compose up -d if so then run docker-compose up -d instead

"command not found docker" and "command not found docker-compose"

ui0ppk commented 1 month ago

did you install docker and open a new terminal window? if not then the old path (if that exists on macos idk) might of not changed

MrGlitchWasTaken commented 1 month ago

did you install docker and open a new terminal window? if not then the old path (if that exists on macos idk) might of not changed

i tried running "docker compose up -d" on the docker terminal and it displays " ✘ surreal Error Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/man... 1.2s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password"

ui0ppk commented 1 month ago

have you not set up the .env? read the docs in the source

MrGlitchWasTaken commented 1 month ago

have you not set up the .env? read the docs in the source

i did what you said in the previous issue. I renamed .env.example to .env

ui0ppk commented 1 month ago

yeah but i assumed you took the time to edit it

MrGlitchWasTaken commented 1 month ago

yeah but i assumed you took the time to edit it

soo how do i fix the problem

ui0ppk commented 1 month ago

i dont think you know what you are doing, if you cant set up a env file properly you probably wont be able to patch a client sorry

MrGlitchWasTaken commented 1 month ago

i dont think you know what you are doing, if you cant set up a env file properly you probably wont be able to patch a client sorry

you said to rename it to .env so i did

ui0ppk commented 1 month ago

please read the setup guide for mecurycore

MrGlitchWasTaken commented 1 month ago

please read the setup guide for mecurycore

i did. i couldnt find the .env file to copy .env.example to so i asked about it on an issue and you replied to rename to .env so i did

Heliodex commented 1 month ago

Setting up with the .env file shouldn't be required for Docker to work correctly. On Apple silicon, docker compose V1 with the docker-compose command doesn't work, so trying V2 with docker compose is the right move. Alternatively on MacOS you could install docker with a package manager like Homebrew.

did you install docker and open a new terminal window? if not then the old path (if that exists on macos idk) might of not changed

i tried running "docker compose up -d" on the docker terminal and it displays " ✘ surreal Error Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/man... 1.2s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password"

Seems like Docker is installed correctly now! The problem seems to be a common one with pulling images from container registries.

MrGlitchWasTaken commented 1 month ago

Setting up with the .env file shouldn't be required for Docker to work correctly. On Apple silicon, docker compose V1 with the docker-compose command doesn't work, so trying V2 with docker compose is the right move. Alternatively on MacOS you could install docker with a package manager like Homebrew.

did you install docker and open a new terminal window? if not then the old path (if that exists on macos idk) might of not changed

i tried running "docker compose up -d" on the docker terminal and it displays " ✘ surreal Error Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/man... 1.2s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password"

Seems like Docker is installed correctly now! The problem seems to be a common one with pulling images from container registries.

  • Does the basic docker run hello-world command work?
  • Does the same issue occur when running docker compose pull in the repository or any of its subfolders to download the database image?
  • If you're using docker desktop, try running docker logout to fix the invalid credentials error? I'm not sure if this would work because you shouldn't need to be logged in to download the images.

The docker run hello-world command brings up with the following error:

Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": unauthorized: incorrect username or password. See 'docker run --help'.

docker compose pull brings up:

[+] Pulling 2/2 ✔ economy Skipped - No image to be pulled 0.0s ✘ surreal Error Head "https://registry-1.docker.io/... 0.5s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password

bignegro commented 1 month ago

Setting up with the .env file shouldn't be required for Docker to work correctly. On Apple silicon, docker compose V1 with the docker-compose command doesn't work, so trying V2 with docker compose is the right move. Alternatively on MacOS you could install docker with a package manager like Homebrew.

did you install docker and open a new terminal window? if not then the old path (if that exists on macos idk) might of not changed

i tried running "docker compose up -d" on the docker terminal and it displays " ✘ surreal Error Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/man... 1.2s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password"

Seems like Docker is installed correctly now! The problem seems to be a common one with pulling images from container registries.

  • Does the basic docker run hello-world command work?
  • Does the same issue occur when running docker compose pull in the repository or any of its subfolders to download the database image?
  • If you're using docker desktop, try running docker logout to fix the invalid credentials error? I'm not sure if this would work because you shouldn't need to be logged in to download the images.

The docker run hello-world command brings up with the following error:

Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": unauthorized: incorrect username or password. See 'docker run --help'.

docker compose pull brings up:

[+] Pulling 2/2 ✔ economy Skipped - No image to be pulled 0.0s ✘ surreal Error Head "https://registry-1.docker.io/... 0.5s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password

Like heliodex suggests, you should try running docker logout and see if that fixes it

MrGlitchWasTaken commented 1 month ago

Setting up with the .env file shouldn't be required for Docker to work correctly. On Apple silicon, docker compose V1 with the docker-compose command doesn't work, so trying V2 with docker compose is the right move. Alternatively on MacOS you could install docker with a package manager like Homebrew.

did you install docker and open a new terminal window? if not then the old path (if that exists on macos idk) might of not changed

i tried running "docker compose up -d" on the docker terminal and it displays " ✘ surreal Error Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/man... 1.2s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password"

Seems like Docker is installed correctly now! The problem seems to be a common one with pulling images from container registries.

  • Does the basic docker run hello-world command work?
  • Does the same issue occur when running docker compose pull in the repository or any of its subfolders to download the database image?
  • If you're using docker desktop, try running docker logout to fix the invalid credentials error? I'm not sure if this would work because you shouldn't need to be logged in to download the images.

The docker run hello-world command brings up with the following error: Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": unauthorized: incorrect username or password. See 'docker run --help'. docker compose pull brings up: [+] Pulling 2/2 ✔ economy Skipped - No image to be pulled 0.0s ✘ surreal Error Head "https://registry-1.docker.io/... 0.5s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password

Like heliodex suggests, you should try running docker logout and see if that fixes it

I actually did and nothing was fixed...

Heliodex commented 1 month ago

The docker run hello-world command brings up with the following error:

Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Head "https://registry-1.docker.io/v2/library/hello-world/manifests/latest": unauthorized: incorrect username or password. See 'docker run --help'.

docker compose pull brings up:

[+] Pulling 2/2 ✔ economy Skipped - No image to be pulled 0.0s ✘ surreal Error Head "https://registry-1.docker.io/... 0.5s Error response from daemon: Head "https://registry-1.docker.io/v2/surrealdb/surrealdb/manifests/v1.5.4": unauthorized: incorrect username or password

Docker support forums seem to state that this is either a problem with being not logged into an account (it isn't, you shouldn't need to be logged in to pull images from public registries) or a problem with access through TLS/HTTPS. I've had the exact same problem before and can't recall how I resolved it.

Either way, I've created #346 for if your difficulties with docker remain unresolved, so you can use Mercury Core more easily without problems. Yours is not an isolated incident and I've had a few other messages from people having trouble with setting up Docker.

Heliodex commented 1 month ago

The README now includes instructions for running without Docker, though it requires starting two separate processes I hope it's an okay workaround for now.