@kimh any updates on docker 1.10 and caching?
@alikhan_io No solid update for caching so far. I donāt have a good solution now, so just waiting for some update at https://github.com/docker/docker/issues/20380 and https://github.com/docker/docker/issues/20451
@kimh Any updates on docker exec
?
@VikParuchuri Sorry, not real update either for docker exec
. Unlike docker cp
issue, itās just I couldnāt take time on this, though. Iāll give you an update sometime in this week.
Is it possible to install docker-compose 1.6 also?
We have been manually pip installing docker-compose==1.6.0 in test:pre. Seems to work fine. Everything working except as reported above; no caching, copy, or exec.
Thanks! Iāll look into that.
Weāre having the same issue with Docker exec. Weāre trying to get out current Docker build process working in Circle CI, and this is a deal breaker for us.
I had issues with pip so I went another direction to install docker-compose
with:
dependencies:
override:
- curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
- chmod +x ~/docker-compose
- ~/docker-compose version
Are there any updates on supporting docker exec
? Iām still getting the error:
open /proc/self/oom_score_adj: no such file or directory
Any workarounds? Would love this feature.
sudo lxc-attach -n "$(docker inspect --format '' $MY_CONTAINER_NAME)" -- bash -c $MY_COMMAND
See bottom of https://circleci.com/docs/docker/
Any updates? It looks like https://github.com/docker/docker/issues/20451 is closed but https://github.com/docker/docker/issues/20380 is still open.
Caching via load/save will be fixed in 1.11 See: https://github.com/docker/docker/pull/21385
Iām having issues with both docker exec
and lxc-attach
with the 1.10 build.
~$ docker --version
Docker version 1.10.0-circleci, build 543ec7b-unsupported
~$ docker exec -it postgres pg_isready
open /proc/self/oom_score_adj: no such file or directory
~$ sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' postgres)" -- bash -c "pg_isready"
lxc-attach: attach.c: lxc_attach: 710 failed to get the init pid
Doesnāt work for me either. This is probably why 1.10 is ābetaā. Personally, Iām using a workaround where I mount a shell script and run it on the container run:
docker run -it \
-v /my/script.sh:/usr/sbin/myscript \
my-image sh -c "myscript && ..."
1.11 is out. Can we please get support if only to try caching again? This discussion has been started here:
+1 for 1.11 support.
After some monkeying around here is some important information:
- lxc-attach canāt work with any versions of docker 1.10 or above as the lxc driver has been removed completely now (itās not even an option anymore). See https://github.com/docker/docker/releases/tag/v1.10.0
- The default docker version right now on circleCI is 1.8.3.
- The documentation for using
lxc-attach
is broken⦠itās missing the--format='{{.Id}}'
See https://circleci.com/docs/docker/#docker-exec which just shows--format=''
. -
lxc-attach
is NOT a proper replacement fordocker exec
as all of the usual docker environment variables are missing, the login directory will be/
instead of yourWORKDIR
, you canāt see all the running processes, etc. - also tried to see if docker-in-docker would work, but looks like thatās broken as well.
docker run --privileged --name some-docker -d docker:1.11-dind
gave warnings, then the container never started.
I canāt even get as far as finding out that push/pull donāt work. I simply get:
Starting docker
start: Job failed to start
service docker start returned exit code 1
Action failed: Starting docker
Iād like to bump this thread as well. Docker exec
is a pretty important feature to my organization.