Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1 KB

Readme.md

File metadata and controls

55 lines (40 loc) · 1 KB

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