2015-01-15

docker inspect

docker inspect

root@boot2docker:~# docker run mastersrp/slitaz-core ls -l
exec format error2014/12/3 21:47:19 Error response from daemon: Cannot start container f8042526bcb711ff76b27b3cd4288e11373b172e690e2742f6314b91ed7b2c21: exec format error

1.
root@boot2docker:~# docker search slitaz
NAME                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
slitaz/slitaz-base32    slitaz-rolling-base image.                      0
slitaz/slitaz-base      SliTaz base image.                              0
mastersrp/slitaz-core   A 32bit version of the core SliTaz system ...   0  


2.
root@boot2docker:~# docker images
REPOSITORY              TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
slitaz/slitaz-base32    latest              ffefc23152b9        2 days ago          18.73 MB
slitaz/slitaz-base      latest              0bd2fd062ec7        2 weeks ago         8.778 MB
mastersrp/slitaz-core   latest              3c2cb5d63685        3 months ago        41 MB


3.
root@boot2docker:~# docker inspect -f {{".Architecture"}} slitaz/slitaz-base32
386

root@boot2docker:~# docker inspect -f {{".Architecture"}} slitaz/slitaz-base
amd64

root@boot2docker:~# docker inspect -f {{".Architecture"}} mastersrp/slitaz-core
amd64



4.
root@boot2docker:~# docker inspect ffef | grep Arch
"Architecture": 386,

root@boot2docker:~# docker inspect 0bd2 | grep Arch
"Architecture": "amd64",

root@boot2docker:~# docker inspect 3c2c | grep Arch
"Architecture": "amd64",



5.
root@boot2docker:~# docker inspect mastersrp/slitaz-core
[{
    "Architecture": "amd64",
    "Author": "",
    "Comment": "Imported from -",
    "Config": null,
    "Container": "",
    "ContainerConfig": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": null,
        "CpuShares": 0,
        "Cpuset": "",
        "Domainname": "",
        "Entrypoint": null,
        "Env": null,
        "ExposedPorts": null,
        "Hostname": "",
        "Image": "",
        "MacAddress": "",
        "Memory": 0,
        "MemorySwap": 0,
        "NetworkDisabled": false,
        "OnBuild": null,
        "OpenStdin": false,
        "PortSpecs": null,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": null,
        "WorkingDir": ""
    },
    "Created": "2014-09-28T12:00:37.328959765Z",
    "DockerVersion": "1.2.0",
    "Id": "3c2cb5d63685a08f384e3f1704eda3b7eac66324ea249fa6974c0e5145a7fe78",
    "Os": "linux",
    "Parent": "",
    "Size": 41000049,
    "VirtualSize": 41000049
}
]

2015-01-08

docker -- slitaz-rolling-base 32bit image

slitaz-base32 and docker-386

docker pull slitaz/slitaz-base32


1.
root@boot2docker:~# uname -a
Linux boot2docker 3.16.7-slitaz #2 SMP Thu Jan 1 22:30:04 UTC 2015 i686 GNU/Linux

2.
root@boot2docker:~# docker -v
docker version 1.3.2, build 39fa2fa

3.
root@boot2docker:~# docker search slitaz
NAME                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
slitaz/slitaz-base32  slitaz-rolling-base 32bit image.                   0                    
slitaz/slitaz-base      SliTaz base image.                              0                    
mastersrp/slitaz-core   A 32bit version of the core SliTaz system ...   0                    

4.
root@boot2docker:~# docker pull slitaz/slitaz-base32
Pulling repository slitaz/slitaz-base32
ffefc23152b9: Download complete 
511136ea3c5a: Download complete 
4e4ec47f6410: Download complete 
Status: Downloaded newer image for slitaz/slitaz-base32:latest

5.
root@boot2docker:~# docker images
REPOSITORY             TAG                 IMAGE ID            CREATED             VIRTUAL SIZE

slitaz/slitaz-base32   latest              ffefc23152b9        8 hours ago         18.73 MB

6.
root@boot2docker:~# docker run -it slitaz/slitaz-base32
/ # slitaz

SliTaz GNU/Linux
================================================================================
Release : cooking
Architecture : i486
Kernel : 3.16.7-slitaz
Machine type : i686
Home path : /home/slitaz
Configs : /etc/slitaz
Main config : /etc/slitaz/slitaz.conf
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 49 packages
Mirror : http://mirror1.slitaz.org/packages/cooking/
System date : Thu Jan 1 23:24:58 UTC 2015
--------------
Boot options : loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=3:LABEL=boot2docker-data base cgroup_enable=memory swapaccount=1
================================================================================

7.
/ # head /var/lib/tazpkg/installed.md5
f8812efc13447da328aabfcc51939091  busybox-1.22.1.tazpkg
417195fe9707a54596f31d4ff3bfb44c  slitaz-base-files-5.6.5.tazpkg
5798e3a7b936dd2f2e52c32a62d8b609  gettext-base-0.18.3.tazpkg
7644b8e7ba37da7b1d8fc03028d5c6c9  glibc-base-2.14.1.tazpkg
f796c8d139c9adea07b5a4bbcadb18cc  ncurses-common-5.9.tazpkg
18b87896be0da942e0ce6ca18000ca7e  cdrkit-1.1.11.tazpkg
169932fa5e7715a7cce39d85f0df2934  libcap-2.19.tazpkg
1f590703641e75e01e9da6f741ff4adb  attr-2.4.46.tazpkg
9248390726a4ae42ef8e50a655e61077  zlib-1.2.8.tazpkg
b9a50c5ad718b1714ccc82b9b9c2df0f  bzlib-1.0.6.tazpkg

8.
/ # du -sh /
20.6M /
root@boot2docker:~#

2015-01-07

docker-386


 docker-386

1.
root@boot2docker:~# uname -a
Linux boot2docker 3.16.7-slitaz #2 SMP Thu Jan 1 22:30:04 UTC 2015 i686 GNU/Linux

2.
root@boot2docker:~# docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.2
Git commit (client): 39fa2fa
OS/Arch (client): linux/386
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.2
Git commit (server): 39fa2fa

3.
root@boot2docker:~# modinfo xt_addrtype
filename: kernel/net/netfilter/xt_addrtype.ko
license: GPL
author: Patrick McHardy <kaber@trash.net>
description: Xtables: address type match
alias: ip6t_addrtype
depends:
vermagic: 3.16.7-slitaz SMP mod_unload 686

4.
root@boot2docker:~# file /usr/bin/docker
/usr/bin/docker: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=30882a411a46865a3e3a482dd2184b3624295602, not stripped

2015-01-02

Docker -- wiki

Docker (software)

 http://en.wikipedia.org/wiki/Docker_(software)

Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating system–level virtualization on Linux.[2] Docker uses resource isolation features of the Linux kernel such as cgroups and kernel namespaces to allow independent "containers" to run within a single Linux instance, avoiding the overhead of starting virtual machines.[3]

Linux kernel's namespaces completely isolate an application's view of the operating environment, including process trees, network, user IDs and mounted file systems, while cgroups provide resource isolation, including the CPU, memory, block I/O and network. Docker includes the libcontainer library as a reference implementation for containers, and builds on top of libvirt, LXC (Linux containers) and systemd-nspawn, which provide interfaces to the facilities provided by the Linux kernel.[4][5]
According to industry analyst firm 451 Research, "Docker is a tool that can package an application and its dependencies in a virtual container that can run on any Linux server. This helps enable flexibility and portability on where the application can run, whether on premise [sic], public cloud, private cloud, bare metal, etc."[6]

[..]
External links