Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install latest version of docker. #18

Merged
merged 4 commits into from
Oct 14, 2015
Merged

Install latest version of docker. #18

merged 4 commits into from
Oct 14, 2015

Conversation

ejholmes
Copy link
Contributor

Old method started failing, this uses the new installation instructions from https://docs.docker.com/installation/ubuntulinux/

@@ -0,0 +1 @@
deb https://apt.dockerproject.org/repo ubuntu-trusty main
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What drops this in place? Don't you already have a apt_repository statement for something like this in tasks/main.yml?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good call. I'll update the apt_repository step.

@benguillet
Copy link

👍

@ejholmes
Copy link
Contributor Author

Upgrading to docker 1.8.3 seems to break builds:

# github.com SSH-2.0-libssh-0.7.0
�[0;32mStarting Docker...�[0m
ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted
�[0;32mStopping Docker...�[0m

@phobologic
Copy link
Contributor

Note: You can specify a specific docker version with the new mirror as of a week or so ago.

Here's all the versions they support:

https://apt.dockerproject.org/repo/dists/ubuntu-trusty/main/binary-amd64/Packages

Here's an example of locking to a specific package version in ansible:

https://github.com/remind101/empire_ami/blob/master/ansible/roles/docker/tasks/main.yml#L41

@ejholmes
Copy link
Contributor Author

Sweet. Added a commit that locks docker to 1.7.1. I'll test again and make sure there's no issues.

ejholmes added a commit that referenced this pull request Oct 14, 2015
Install latest version of docker.
@ejholmes ejholmes merged commit c3b9f5a into master Oct 14, 2015
@ejholmes ejholmes deleted the docker branch October 14, 2015 21:12
@ejholmes
Copy link
Contributor Author

Seems like switching to the new docker build may have slowed down docker in docker.

@ejholmes
Copy link
Contributor Author

Bunch of docker start timeouts after deploying this /cry.

ejholmes added a commit that referenced this pull request Oct 14, 2015
This reverts commit c3b9f5a, reversing
changes made to a823443.
ejholmes added a commit that referenced this pull request Oct 14, 2015
@ejholmes
Copy link
Contributor Author

Looks like this was probably caused because it switched from using aufs to devicemapper:

Before

$ docker info
Containers: 3
Images: 42
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 48
 Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-61-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 4
Total Memory: 7.305 GiB
Name: ip-10-0-0-121
ID: 7HCU:7ECK:LZA5:JSML:7UV7:MN7N:2OES:LHS5:ZRCR:7NAV:564V:CU67
Username: conveyor
Registry: https://index.docker.io/v1/
WARNING: No swap limit support

After

$ docker info
Containers: 3
Images: 42
Storage Driver: devicemapper
 Pool Name: docker-202:112-6029313-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 1.587 GB
 Data Space Total: 107.4 GB
 Data Space Available: 103.9 GB
 Metadata Space Used: 2.568 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.145 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.77 (2012-10-15)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-49-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 4
Total Memory: 7.305 GiB
Name: ip-10-0-0-152
ID: 5G5U:MJH3:JFKT:ZIZU:ZBE4:E7JI:TWLS:GA6R:REF5:7C3B:WHDC:4N3K
Username: conveyor
Registry: https://index.docker.io/v1/
WARNING: No swap limit support

@cordoval
Copy link
Contributor

i think we should lock to version 1.7.0 tbh cc @ejholmes for now before moving into the .dockercfg -> .docker/config.json, i am having a nightmare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants