Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting http: invalid Host header while running shell.sh #1003

Open
8 tasks done
sachyya opened this issue Oct 3, 2023 · 5 comments
Open
8 tasks done

Getting http: invalid Host header while running shell.sh #1003

sachyya opened this issue Oct 3, 2023 · 5 comments

Comments

@sachyya
Copy link

sachyya commented Oct 3, 2023

Have you already checked elsewhere?

What are you struggling with?

After I up the containers and try to login into php shell using shell.sh, I get http: invalid Host header

What have you tried already?

I have updated the docker containers with update-docker.sh.. Looked into logs but no issue. Have verified my /etc/hosts file.

What is your goal?

I want to be able to get access to the container's shell.

@jareckik1
Copy link

Yeah, i got this message when i try to run shell.sh

@jareckik1
Copy link

You can access to shell by typing in terminal: docker exec -it <container_number> /bin/bash

@sachyya
Copy link
Author

sachyya commented Oct 9, 2023

I tried that one too since shell.sh has the same command and I get the same error.

@romanovj
Copy link

romanovj commented Oct 16, 2023

info moby/moby#46614 (comment)

you can fast fix it by editing daemon.json, replace unix:///var/run/docker.sock with localhost

start containers with

sudo docker -H localhost:2375

like

sudo docker -H localhost:2375 run -it debian

you can also delete hosts from daemon.json and start docker daemon with

sudo dockerd -H localhost:2375

2375 - standart docker port

@jareckik1
Copy link

Ok, I was able to fix the problem. Just had to uninstall docker, next install docker-desktop and thats all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants