Monday, July 26, 2021

Docker Compose Failing; 'unknown flag: --d'

My Windows Docker installation was recently updated to version 3.5.2 (66501), after which commands like docker-compose up --d failed with the following errors:

level=warning msg="network default: is deprecated in favor of" not implemented

unknown flag: --d

As it turns out, this is due to an experimental feature that seems to be enabled by default in Docker's Experimental Features settings:

The solution, for now, was to simply disabled the experimental feature by unchecking the `Use Docker Compose V2` checkbox in the settings; or run `docker-compose disable-v2`.
More information about the Compose V2 beta CLI can be found here: 

Compose V2 beta | Docker Documentation


Post a Comment