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

DOCKER_HOST_IP don't work in centos7? #2541

Closed
carveybunt opened this issue Mar 29, 2020 · 2 comments
Closed

DOCKER_HOST_IP don't work in centos7? #2541

carveybunt opened this issue Mar 29, 2020 · 2 comments

Comments

@carveybunt
Copy link

carveybunt commented Mar 29, 2020

Why can't I see DOCKER_HOST_IP of default of .env in IP list when I use command "ip addr" after I run command "docker-compose up -d nginx redis mysql php-fpm" in Centos 7.6. I just setting "CHANGE_SOURCE=true" of .env. Who can help me solve the problem, please?
image

@vv12131415
Copy link
Contributor

Hi! I don't really understand your problem
probably this command will help you to get it

ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+'

@carveybunt
Copy link
Author

@vladyslavstartsev thanks

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

2 participants