/dockerfiles

Collection of useful dockerfiles for development & debugging.

Primary LanguageDockerfileGNU Affero General Public License v3.0AGPL-3.0

Dockerfiles

Collection of useful dockerfiles for development & debugging.

Requirements

Usage

Build an image

docker build -t <image-tag> - < ./<path>/Dockerfile

Run a container

docker run --detach --publish-all --name <name> --hostname <name> <image-tag>

Log into a container

Find out container SSH port

docker container inspect --format='{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}' <container-name>

Connect via SSH

ssh dev@172.17.0.1 -p <port>

Default credentials are dev:pass