# vim /etc/apt/sources.list
deb http://yourrepo/debian/ sid main
# apt-get update
# apt-get install docker.io
$ sudo /usr/share/docker.io/contrib/mkimage.sh -t ${USER}/minbase debootstrap --variant=minbase --components=main --include=inetutils-ping,inetutils-traceroute,iproute jessie http://yourrepo/debian/
$ sudo docker run -it ${USER}/minbase echo "hello citra"
or bash shell:
$ sudo docker run -it ${USER}/minbase /bin/bash
$ vim dockerfile
FROM stwn/minbase MAINTAINER stwn@NOSPAMduniasemu.org RUN apt-get update && apt-get install -y \ apt-utils less sudo screen \ openssh-server openssh-client \ asterisk
# docker build -t ${USER}/asterisk:test0 - < dockerfile
# systemctl restart docker.service
# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE stwn/minbase latest d816657c5182 3 minutes ago 123.7 MB scratch latest 511136ea3c5a 22 months ago 0 B
# docker rmi [IMAGE ID]
# docker commit [IMAGE ID] ${USER}/asterisk:test1
# docker ps -a
# docker rm [CONTAINER ID]
There is a network interface named docker0 when we run Docker engine. This interface connected as a (virtual Ethernet) bridge to containers inside Docker and configured with private ip address/network.