/alpine-docker

docker on pure alpine linux. docker in docker

Primary LanguageShell

Docker

About

Pure alpine linux docker. Docker inside docker.

wikipedia.org/wiki/Docker

Usage

Commandline

Starts a shell ready to docker

docker run -ti --privileged danielguerra/alpine-docker /bin/sh

Daemon

docker run --name alpine-docker -p 2375:2375 --privileged -d danielguerra/alpine-docker

To start a shell in your new container.

docker exec -ti alpine-docker /bin/sh

Inside the container shell

Now you can start containers inside your alpine-docker container.

docker run -d elasticsearch
docker images
docker ps -a
docker volume ls

Docker-compose

If you need docker-compose inside your alpine-docker container.

setup-compose
docker-compose up

Remote docker

Set your client system variables and go

export DOCKER_API_VERSION=1.23
export DOCKER_HOST='tcp://127.0.0.1:2375'
docker ps
docker-compose up