-
Notifications
You must be signed in to change notification settings - Fork 24
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
Cannot link to /mysql, as it does not belong to the default network. #13
Comments
Hi makorne, Regards cbxxn |
+1 |
1 similar comment
+1 |
Sorry I no longer use the container/image myself, thus supporting it is challening ;) I've to setup everything again to see how newer Docker versions work, especially with sharing the env vars. In the meantime, did anyone try to fix or find the problem or was |
Closing this issue in favor #2, which is the root cause for the Regarding the network error: This is a "Docker" thing and everyone using Docker should be aware of it. IMHO it doesn't make any sense to repeatedly document this in every docker image / container using links. However, a note could be helpful in the docs :) |
you just need to add --network my-net in second line as well i.e It is necessary to run all containers you want to link within same network. |
docker network create my-net
docker run --network my-net --name mysql -d mysql
docker run --name backup --link mysql -v /backup:/backup confirm/mysql-backup
docker run --name backup --network my-net --link mysql -v /backup:/backup confirm/mysql-backup
The text was updated successfully, but these errors were encountered: