#!/bin/bash -x
# run alpine linux in a temporary container, where we can play with any commands
# save as "docker-run-alpine.sh"
docker run -it --rm "$@" alpine:3.4 sh --login -i
Example of use:
# docker-run-alpine.sh --net=host (in host)
+ docker run -it --rm --net=host alpine:3.4 sh --login -i
# (in a temporary container)