Hi guys,
If you are trying to run docker-compose up -d but got below error:
TypeError: docopt() got an unexpected keyword argument 'option_first'
or
ModuleNotFoundError: No Module named 'docker.errors'
try to run below comment:
1. pip uninstall docker-py
2. pip install -U docker-compose
3. try run docker-compose up -d in new terminal
if it's still not working, try to run below comment:
1. pip uninstall docker
2. pip uninstall docker-py
3. pip uninstall docker-compose
4. pip install docker-compose
5. try run docker-compose up -d in new terminal
Below is full error when can't perform docker-compose up
or
Reference:
If you are trying to run docker-compose up -d but got below error:
TypeError: docopt() got an unexpected keyword argument 'option_first'
or
ModuleNotFoundError: No Module named 'docker.errors'
try to run below comment:
1. pip uninstall docker-py
2. pip install -U docker-compose
3. try run docker-compose up -d in new terminal
if it's still not working, try to run below comment:
1. pip uninstall docker
2. pip uninstall docker-py
3. pip uninstall docker-compose
4. pip install docker-compose
5. try run docker-compose up -d in new terminal
Below is full error when can't perform docker-compose up
or
Reference:
- https://github.com/docker/compose/issues/4874
- https://stackoverflow.com/questions/47132236/docker-compose-install-no-module-named-docker-errors