Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Dev Box Docker Image

It contains some dev tools that I use for my projects.

In docker hub:
https://registry.hub.docker.com/u/wenbinf/devbox/

Run it:

# Optional command line arguments:
#   -v ~/src:/root/src It'll map ~/src on local host to /root/src in the container.
#                      So you can put your source code inside ~/src.
#   --link memcached:memcached It'll link memcached container to this devbox container.
#                              See /etc/hosts inside devbox container for hostname/ip.
docker run -d --name devbox -v ~/src:/root/src -p 22 wenbinf/devbox

Two ways to log into the container

Via docker exec

Run this (need docker > 1.3):

docker exec -it devbox /bin/bash

You can add this shortcut to ~/.bashrc, e.g.,

ssh_devbox() {
    docker exec -it devbox /bin/bash
}

So you can use such command to login devbox:

ssh_devbox

Via SSH

SSH into it:

curl -o ~/.ssh/insecure_key -fSL https://github.com/phusion/baseimage-docker/raw/master/image/insecure_key
chmod 600 ~/.ssh/insecure_key
ssh -i ~/.ssh/insecure_key root@$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" devbox)

You can add this shortcut to ~/.bashrc, e.g.,

ssh_devbox() {
    ssh -i ~/.ssh/insecure_key root@$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" devbox)
}

So you can use such command to login devbox:

ssh_devbox
Docker Pull Command
Owner
wenbinf
Source Repository

Comments (0)