new to Docker so this may be basic, but after my googling I have still not found a solution
I have a docker-compose.yml file I am trying to run (version for the file is "3.4", but I am getting the error:
"The compose file is invalid because:
networks.default value Additional properties are not allowed ('name' was unexpected)
This is the portion of the docker-compose file that is failing:
networks:
default:
driver: bridge
name: nssams_bridge
When I run (I am on Ubuntu 20.04)
docker-compose --version
It says the version is 1.25.0, I am not sure if that is a high enough version to support 3.4, is my guess.
But I have tried to update docker-compose many ways and none of them seem to work.
I have tried:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
and
sudo apt upgrade docker-compose
as well as
sudo pip install docker-compose
but after all of these, the docker-compose --version command still returns 1.25.0, build unknown
So how do I upgrade the docker-compose version?