I am trying to learn docker and understanding docker-compose

As I was trying out the external network section:

      name: my-pre-existing-network

I understand that 'my-pre-existing-network' needs to be created.

Is it possible to create a new default external network from within the compose file itself?

This is more from a learning/understanding perspective. Thanks.


No that is not possible , it is called external because is created from outside the current docker-compose.yml you are working on

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.