0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Lightweight Linux workground with docker containers

Posted at
# !/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)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?