4 ms·
It's like asking when to use python2. Use v2 if you have no choice. If you're asking, apparently you have the choice, so there's your answer.
by avip 7y ago
It's like asking when to use python2. Use v2 if you have no choice. If you're asking, apparently you have the choice, so there's your answer.
- stevebmark 7y agoNope, entirely wrong! v3 isn't an upgrade, it has features specific to orchestration. v3 is a fork, not an upgrade. v2 is better for local development, it has things like depends_on which v3 doesn't have.
- avip 7y agodepends_on was removed because it was an inconsistent and problematic directive. You can abuse links instead.
- stevebmark 6y agoYou should only use v3 if you need v3 features and know how to use them. You should use v2 for local development if you're not using stack/swarm locally: https://github.com/docker/compose/issues/4305#issuecomment-305378202 https://github.com/docker/compose/issues/4305#issuecomment-3...