docker-compose


Docker-compose ps error


I am new to docker-compose and getting the following error when I type in docker-compose ps.
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 7, in <module>
from compose.cli.main import main
File "/Library/Python/2.7/site-packages/compose/cli/main.py", line 20, in <module>
from ..bundle import get_image_digests
File "/Library/Python/2.7/site-packages/compose/bundle.py", line 14, in <module>
from .service import format_environment
File "/Library/Python/2.7/site-packages/compose/service.py", line 37, in <module>
from .parallel import parallel_execute
File "/Library/Python/2.7/site-packages/compose/parallel.py", line 10, in <module>
from six.moves import _thread as thread
ImportError: cannot import name _thread
Docker-compose is written by python. It seems that you miss some python packages. You can refer to the following page of how to fix the python lib issue.
Matplotlib issue on OS X ("ImportError: cannot import name _thread")
Alternatively, you can try to install docker-compose as a container, the docker container contains appropriate environment for docker-compose.
https://docs.docker.com/compose/install/#install-as-a-container

Related Links

Passing arguments to docker compose file when using it for swarm
How to run ad hoc docker compose commands in Ansible?
Using custom hostnames for docker local development containers
Changing the network name?
Let external container know about subnets created by multiple docker-compose projects
How to monitor / discover more docker containers with prometheus
two docker-compose .yml in the same network with COMPOSE_PROJECT_NAME
docker compose 3.1(swarm), secrets, ssl and nginx
What is the version directive for?
How to run docker-compose up -d at system start up?
In Docker Compose can I have services exiting
Docker compose - secrets Additional property secrets is not allowed
docker-compose mounted volume remain
Should I do anything after upgrading docker-compose?
docker caddy proxy not forwarding
docker share OS volume between services

Categories

HOME
asterisk
gulp
excel-formula
cxf
abc
blob
glsl
dynamic
okhttp3
itext7
salesforce-lightning
multipartform-data
sequence
zabbix
doctrine2
token
apache-httpclient-4.x
kairosdb
watson-dialog
cakephp-2.0
opengrok
swift3.1
appsettings
jsfiddle
nsoperation
brightway
internet-explorer-7
alert
geography
views
google-street-view
civicrm
passbook
ampscript
android-wifi
ejb-3.1
connection-pooling
oracle-nosql
kepserverex
dotnetnuke-module
nsdateformatter
jslider
cowboy
julia-jump
server-side-swift
keychain
vpython
inner-join
api-key
django-cors-headers
ocpjp
spring-data-commons
hdpi
dynamic-linking
htop
jtextarea
overhead
tsc
group
therubyracer
sqlproj
mavlink
indoor-positioning-system
git-push
boost-range
change-password
chomsky-normal-form
datamodel
nslocalizedstring
jcomponent
transbase
vensim
avd
radgrid
nfa
lwuit
nsnotificationcenter
redmine-plugins
disparity-mapping
fscanf
azure-caching
pidgin
object-oriented-database
xcode6.1-gm-seed
kendo-window
nx
moonscript
screensharing
xcode4.6.3
github-archive
socketasynceventargs
win-prolog
pinchzoom
ruby-1.9
youtube.net-api
service-layer
object-tag
zipstream
database-agnostic
p4.net
for-xml
web-search
managed-code
httpbrowsercapabilities
cross-cutting-concerns
office-2003
tracd

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App