~snappy-dev/snappy-hub/docker

« back to all changes in this revision

Viewing changes to readme

  • Committer: Kick In
  • Date: 2015-08-11 14:04:55 UTC
  • Revision ID: kick@kick-peppy-20150811140455-ifap5d4mgffvln10
Update to 1.6.2, modified building notes, modified ulimit for testing, and
fixes docker-privilege not working due to some underlaying FS changes.
Fix LP: #1482685 via a longer sleep; a better fix is in the pipe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Docker Framework
 
2
This is the docker app deployment mechanism.
 
3
 
 
4
Actual docker version: 1.6.2
 
5
 
 
6
Apparmor profiles have been moved to /var/lib/apparmor/profiles, default profile as been modified.
 
7
Data is stored in /var/lib/apps/docker/${version_of_snap_package}/.
 
8
 
 
9
If you need to pass through proxies or dns, edit /apps/docker/current/etc/docker.conf accordingly and restart the docker service:
 
10
i.e:
 
11
FTP_PROXY=http://your.proxy:3128
 
12
HTTP_PROXY=http://your.proxy:3128
 
13
HTTPS_PROXY=http://your.proxy:3128
 
14
DOCKER_OPTIONS="--dns 8.8.8.8"
 
15
 
 
16
If you need privileged access, you can issue 'docker-privilege on'. But 
 
17
the confinment will be nearly inexistant.
 
18
 
 
19
User data is in $HOME/apps/docker/1.6.2.001
 
20
Docker can read and write to your home/apps/docker/** directory, place your Dockerfile, there.
 
21
ie:
 
22
        cd /home/ubuntu/apps/docker/1.6.2.001/
 
23
        echo "FROM ubuntu:latest" > Dockerfile
 
24
        docker build .
 
25
        docker save -o my_image.tar IMAGE_UUID
 
26
        docker load -i my_image.tar
 
27
 
 
28
All of the commands that require docker to read local files must be done
 
29
within the $HOME/apps/docker/$Version/ dir or with full path to this dir
 
30
added.
 
31
 
 
32
sudo systemctl restart docker_docker_${version_of_snap_package}.service
 
33
 
 
34
## Notes:
 
35
 
1
36
If you want to build it just issue:
2
37
snappy build package-dir
3
38
 
4
39
Known issues so far:
5
40
docker.svg, it is a png saved as a svg for now.
6
41
 
7
 
Then copy it to  your snappy instance and install it (snappy install docker_1.3.2.00x_amd64.snap).
8
 
 
9
 
If you need to add proxies or dns, look at meta/readme.md.
 
42
Then copy it to  your snappy instance and install it (snappy install docker_VERSION_ARCH.snap).
10
43
 
11
44
 
12
45
Testing
32
65
80123ba0450a        armbuild/ubuntu:trusty   "/bin/sh"           7 seconds ago       Up 5 seconds                            ecstatic_newton
33
66
 
34
67
$ docker version
35
 
Client version: 1.6.0
 
68
Client version: 1.6.2
36
69
Client API version: 1.18
37
70
Go version (client): go1.4.2
38
 
Git commit (client): b6d9ed8
39
 
OS/Arch (client): linux/arm
40
 
Server version: 1.6.0
 
71
Git commit (client): a464a34 #OR 8f2d6e5
 
72
OS/Arch (client): linux/arm  #OR linux/amd64
 
73
Server version: 1.6.2
41
74
Server API version: 1.18
42
75
Go version (server): go1.4.2
43
 
Git commit (server): b6d9ed8
44
 
OS/Arch (server): linux/arm
 
76
Git commit (server): a464a34 #OR 8f2d6e5
 
77
OS/Arch (server): linux/arm  #OR linux/amd64
45
78
 
46
79
$ docker search tutorial
47
80
... the tutorial ...
48
81
 
49
 
 
50
82
<more here>