I have this yml file that I use with docker compose but the command hangs.
es:
image: local/repo:elastic_search
ports:
- "9200:9200"
- "9300:9300"
volumes:
- /var/log/elasticsearch:/var/log/elasticsearch
db:
image: local/repo:mongodb
ports:
- "27017:27017"
- "27018:27018"
volumes:
- /var/log/mongodb:/var/log/mongodb
app:
image: local/repo:tomcat7
ports:
- "443:443"
- "8998:8998"
- "8999:8999"
links:
- es:es
- db:db
volumes:
- /opt/repo/deploy:/opt/repo/deploy
- /opt/repoadmin/deploy:/opt/repoadmin/deploy
- /var/log/tomcat7:/var/log/tomcat7
The verbose output is given below:
$ docker-compose --verbose -f docker-compose-test.yml up
Compose version 1.3.3
Docker base_url: http+docker=>localunixsocket
Docker version: KernelVersion=3.13.0-57-generic, Os=linux, ApiVersion=1.19, Version=1.7.1, GitCommit=786b29d, Arch=amd64, GoVersion=go1.4.2
docker containers <- (all=True, filters={u’label’: [u’com.docker.compose.project=dockerrepo’, u’com.docker.compose.service=db’, u’com.docker.compose.oneoff=False’]})
docker containers -> (list with 1 items)
docker inspect_container <- (u’600df117e6963db0f140b820c2009194796541871122a5b0d7acffdd1614661b’)
docker inspect_container -> {u’AppArmorProfile’: u’’,
u’Args’: [],
u’Config’: {u’AttachStderr’: False,
u’AttachStdin’: False,
u’AttachStdout’: False,
u’Cmd’: None,
u’CpuShares’: 0,
u’Cpuset’: u’’,
u’Domainname’: u’’,
u’Entrypoint’: [u’/bin/bash’],
…
…
docker start <- (u’1111e051efa15e1a49f426f1bcaf706847b0cfc360d672cae80413ac95d7acca’)
docker start -> None
docker remove_container <- (u’6fee9a6f10b50e4aae983b8831f046430571eeccbc13699b4f82f4caf6aa92ca’)
docker remove_container -> None
docker containers <- (all=False, filters={u’label’: [u’com.docker.compose.project=dockerrepo’, u’com.docker.compose.service=db’, u’com.docker.compose.oneoff=False’]})
docker containers -> (list with 0 items)
docker containers <- (all=True)
docker containers -> (list with 6 items)
docker containers <- (all=False, filters={u’label’: [u’com.docker.compose.project=dockerrepo’, u’com.docker.compose.service=es’, u’com.docker.compose.oneoff=False’]})
docker containers -> (list with 0 items)
docker containers <- (all=True)
docker containers -> (list with 6 items)
docker containers <- (all=False, filters={u’label’: [u’com.docker.compose.project=dockerrepo’, u’com.docker.compose.service=app’, u’com.docker.compose.oneoff=False’]})
docker containers -> (list with 0 items)
docker containers <- (all=True)
docker containers -> (list with 6 items)
Attaching to
And this is where it hangs at attaching to. Weird that it doesn’t even say what is it trying to attach to. Note that starting the containers with docker and same volumes and links works just fine. Any ideas?
I couldn’t work out how to paste the whole output due some two links limitation for new users but can provide it if needed.
Thanks,
Igor