slitaz/slitaz-ssh

slitaz/slitaz-ssh
https://hub.docker.com/r/slitaz/slitaz-ssh/

docker pull slitaz/slitaz-ssh

openssh client/server
ID/PASSWD : root/root

1.

tux@slitaz:~$ docker run --help | egrep '\-d,|\-P,'
-d, --detach      Run container in background and print container ID
-P, --publish-all Publish all exposed ports to random ports

tux@slitaz:~$ docker run -d -P slitaz/slitaz-ssh
Unable to find image 'slitaz/slitaz-ssh:latest' locally
latest: Pulling from slitaz/slitaz-ssh

986f76552751: Pull complete
0226342fb824: Pull complete
c506367a6559: Pull complete
babe5d634668: Pull complete
Digest: sha256:b159db8c7371602c7609cfc04e752d5a3ea4610bef57b76c75174b76d67fca8b
Status: Downloaded newer image for slitaz/slitaz-ssh:latest
b32fc1ef623c43363871ddef19b3622c445f0ad9211bc31833ae17701c9cbb65

2.

tux@slitaz:~$ docker inspect b32f | grep IPAd
 "SecondaryIPAddresses": null,
 "IPAddress": "172.17.0.2",
        "IPAddress": "172.17.0.2",

3.

tux@slitaz:~$ ssh root@172.17.0.2
Host '172.17.0.2' is not in the trusted hosts file.
(ecdsa-sha2-nistp256 fingerprint md5 
4e:89:a7:c0:69:64:12:13:72:d6:af:18:53:af:e1:89)
Do you want to continue connecting? (y/n) y
root@172.17.0.2's password:

Welcome to the Open Source World!

SliTaz GNU/Linux is distributed in the hope that it will be useful,
but with ABSOLUTELY NO WARRANTY.

4.

root@b32fc1ef623c:~# tazpkg -l

List of all installed packages
=============================================================
busybox                       1.23.2            base-system
gettext-base                  0.19.4            base-system
glibc-base                    2.19              base-system
libcrypto                     1.0.1q            security
ncurses-common                5.9               base-system
openssh                       7.2p2             security
sftp-server                   7.2p2             security
slitaz-base-files             309               base-system
tazpkg                        5.3.3             base-system
zlib                          1.2.8             base-system
=============================================================
10 packages installed.

root@b32fc1ef623c:~#

Docker Dockerfile

 

Docker Dockerfile

Public | Automated Build
slitaz/slitaz-ssh

https://hub.docker.com/r/slitaz/slitaz-ssh/~/dockerfile/
https://github.com/alanyih/slitaz-ssh/blob/master/Dockerfile

Dockerfile

FROM slitaz/slitaz-base:latest 

RUN tazpkg -gi openssh && \
	tazpkg -cc

RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
	sed -i 's/#PasswordAuthentication/PasswordAuthentication/' /etc/ssh/sshd_config 

RUN mkdir -p /var/run/sshd

EXPOSE 22/tcp 

CMD ["/usr/sbin/sshd", "-D"]

Logs
https://hub.docker.com/r/slitaz/slitaz-ssh/builds/b2dk4xcv73ytqk8tzvypq5t/

Building in Docker Cloud’s infrastructure…
Cloning into ‘.’…

KernelVersion: 4.4.0-59-generic
Os: linux
BuildTime: 2017-01-10T23:09:49.630531934+00:00
ApiVersion: 1.24
Version: 1.12.6-cs6
GitCommit: 712e864
Arch: amd64
GoVersion: go1.6.4
Starting build of index.docker.io/slitaz/slitaz-ssh:latest…
Step 1 : FROM slitaz/slitaz-base:latest

—> 50236ce3c843

Step 2 : RUN tazpkg -gi openssh && tazpkg -cc

—> Running in 04af6e5b65f6
[..]

Docker Tag

Docker Tag

slitaz/slitaz-base
https://hub.docker.com/r/slitaz/slitaz-base/tags

Tag Name        Compressed Size     Last Updated
2.19            4 MB                15 days ago
latest          4 MB                15 days ago
2.13            4 MB                a month ago

tux@slitaz:~$ docker run -it slitaz/slitaz-base:2.19

Unable to find image 'slitaz/slitaz-base:2.19' locally
2.19: Pulling from slitaz/slitaz-base
986f76552751: Pull complete
Digest: sha256:da483e839a6ab53e68c48dab8449b1fb6ad2f6167b5c894fdf3074bca1cca774
Status: Downloaded newer image for slitaz/slitaz-base:2.19

root@2b3c5287b346:/# tazpkg -l

List of all installed packages
=====================================================
busybox                    1.23.2        base-system
gettext-base               0.19.4        base-system
glibc-base                 2.19          base-system
ncurses-common             5.9           base-system
slitaz-base-files          309           base-system
tazpkg                     5.3.3         base-system
=====================================================
6 packages installed.

slitaz-x86_64-toolchain

slitaz/slitaz-gcc

slitaz-x86_64 toolchain.

docker pull slitaz/slitaz-gcc
https://hub.docker.com/r/slitaz/slitaz-gcc/

Tag Name        Compressed Size        Last Updated
latest            51 MB                18 hours ago

   # cat /usr/share/doc/slitaz/toolchain.txt
    SliTaz GNU/Linux toolchain

   ==============================================

    Build date   : 2016-09-03
    Architecture : x86_64
    Build system : x86_64-slitaz-linux
    Host  system : x86_64-slitaz-linux


    Packages:

        * Binutils 2.25
        * Linux API headers 3.16.36
        * GCC 4.9.2
        * Glibc 2.19

    Toolchain documentation: 
    http://doc.slitaz.org/en:cookbook:toolchain
    ==============================================

SliTaz base image

SliTaz base image.
https://hub.docker.com/r/slitaz/slitaz-base

docker pull slitaz/slitaz-base

Tag Name        Compressed Size        Last Updated
latest            4 MB                2 days ago
2.19              4 MB                2 days ago
2.13              4 MB                9 days ago

UPDATE:20161019

Tag: 2.19 / latest (glibc-2.19)

slitaz-x86_64 mirror
http://slitaz64.96.lt/packages/

Docker 1.12.1 on slitaz-x86_64
http://slitaz64.96.lt/news/docker-1-12-1/
http://forum.slitaz.org/topic/slitaz-x86_64#post-43393

 tux@slitaz:~$ grep -A 6 daemons /var/log/boot.log
  Starting all daemons...
  Setting up kernel security rules...     [ Done ]
  Starting IPtables firewall: /etc/slitaz/
   firewall.sh                            [ Done ]
  Starting SSH server: Dropbear...        [ Done ]
  Starting httpd daemon: httpd...         [ Done ]
  Starting ntpd daemon: ntpd...           [ Done ]
  Starting Docker: docker                 [ Done ]

  tux@slitaz:~$ docker version
  Client:
   Version:      1.12.1
   API version:  1.24
   Go version:   go1.6.3
   Git commit:   23cf638
   Built:        Thu Aug 18 17:52:38 2016
   OS/Arch:      linux/amd64

  Server:
   Version:      1.12.1
   API version:  1.24
   Go version:   go1.6.3
   Git commit:   23cf638
   Built:        Thu Aug 18 17:52:38 2016
   OS/Arch:      linux/amd64

Docker on slitaz-x86_64

tux@slitaz:~$ uname -a
Linux slitaz 3.16.36-slitaz64 #1 SMP Fri Oct 7 13:26:22 UTC 2016 x86_64 GNU/Linux

tux@slitaz:~$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world

c04b14da8d14: Pull complete
Digest: sha256:0256e8a36e2070f7bf2d0b0763dbabdd67798512411de4cdcf9431a1feb60fd9
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker Hub account:
https://hub.docker.com

For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/


tux@slitaz:~$ docker images
REPOSITORY    TAG         IMAGE ID       CREATED        SIZE
hello-world   latest      c54a2cc56cbb   3 months ago   1.848 kB

 

Docker 1.12.1

Docker 1.12.1

slitaz-docker.iso    69M    https://goo.gl/oRu1Pc
slitaz-docker.md5             https://goo.gl/2BDlcj

  • Up docker (1.12.1).
  • Fixed Reboot system or Shutdown system does not work.
tux@slitaz:~$ grep -A 6 daemons /var/log/boot.log
Starting all daemons...
Setting up kernel security rules...      [ Done ]
Starting IPtables firewall: /etc/slitaz/firewall.sh                             [ Done ]
Starting SSH server: Dropbear...         [ Done ]
Starting httpd daemon: httpd...          [ Done ]
Starting ntpd daemon: ntpd...            [ Done ]
Starting Docker: docker                  [ Done ]

tux@slitaz:~$ docker version
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 17:52:38 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 17:52:38 2016
 OS/Arch:      linux/amd64

tux@slitaz:~$ docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: tmpfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null host bridge overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 3.16.36-slitaz64
Operating System: SliTaz GNU/Linux 5.0
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.608 GiB
Name: slitaz
ID: 2YSE:454K:GSJW:6ZFP:RRWN:W3ZS:LR5G:Y673:XJ4A:6K7W:FBHK:DLUI
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8
tux@slitaz:~$ 

What’s New in Docker 1.12

Overview of new features

  • Orchestration
    • Swarm mode
    • Docker services
    • Secure by default
    • Networking
  • Live Restore
  • Container Healthchecks
  • Plugin Improvements

slitaz-x86_64 ISO

Download
slitaz-x86_64.iso    51M     https://goo.gl/tRL8SV
slitaz-x86_64.md5             https://goo.gl/lExP1X

slitaz-docker.iso    64M      https://goo.gl/oRu1Pc
slitaz-docker.md5              https://goo.gl/2BDlcj

    Known Issues

  • Can’t connect to display: (null).
  • slitaz-docker: Reboot system or Shutdown system does not work.
    Temporary fixes use ‘reboot -f’ or ‘poweroff -f’.