hackthedev / dcts-shipping

A Chat Platform like Discord but self-hostable like TeamSpeak
https://dcts.chat
GNU Affero General Public License v3.0
147 stars 10 forks source link

Error running docker / docker compose #12

Closed maaknaamaan closed 4 months ago

maaknaamaan commented 4 months ago

Trying to run this on a docker, but it throws this error;

sudo docker run --name dcts-server -p 8080:2052 ghcr.io/t2vee/dcts;

Error response from daemon: Head "https://ghcr.io/v2/t2vee/dcts/manifests/latest": unauthorized

Running it with the docker compose file throw the same error.

hackthedev commented 4 months ago

Hi i would need to further check it out as it has been made by @t2vee . It looks like the link is dead but like i said gotta check it out

t2vee commented 4 months ago

Apologies, I had forgot to set the visibility on the package to public. Been switched over and correctly able to pull

t2vee commented 4 months ago

@hackthedev I see you deleted the associated docker files on the main branch, after confirming that docker is running as it should did you want me to open another pull request or would you prefer to roll back commits?

hackthedev commented 4 months ago

@t2vee i removed it as i tried to setup a workflow but failed. it seemed like the url in the file for the docker image i believe was private as others didnt have access to it and showed us a "UNAUTHORISED" error message.

Feel free to make another pull request if it works. sorry for the inconvenience

Bunny-B commented 4 months ago

$ curl -L -O https://github.com/t2vee/dcts-shipping/raw/docker-support/docker/docker-compose.yml https://github.com/t2vee/dcts-shipping/raw/docker-support/docker/docker-compose.yml dont seem to exist

also for windows it should be curl.exe -L -O "https://github.com/t2vee/dcts-shipping/raw/docker-support/docker/docker-compose.yml"

hackthedev commented 4 months ago

$ curl -L -O https://github.com/t2vee/dcts-shipping/raw/docker-support/docker/docker-compose.yml https://github.com/t2vee/dcts-shipping/raw/docker-support/docker/docker-compose.yml dont seem to exist

also for windows it should be curl.exe -L -O "https://github.com/t2vee/dcts-shipping/raw/docker-support/docker/docker-compose.yml"

I can use curl without the .exe on windows just fine. depends how you install it

hackthedev commented 4 months ago

@t2vee apparently there is a issue see here. Do you know how we could fix it?

t2vee commented 4 months ago

can you confirm that Allow all actions and reusable workflows is selected under Actions Permissions and that Read and write permissions are set under Workflow permissions in Settings > Actions > General?

Then try triggering the action again with a commit and should be good 👍

hackthedev commented 4 months ago

can you confirm that Allow all actions and reusable workflows is selected under Actions Permissions and that Read and write permissions are set under Workflow permissions in Settings > Actions > General?

Then try triggering the action again with a commit and should be good 👍

it seems to work now. the write permission wasnt set