GithubHelp home page GithubHelp logo

docker-bash-example's Introduction

docker-bash-example

A simple docker example that provides a debian linux os with node 14 installed.

This example image is available on dockerhub: https://hub.docker.com/repository/docker/wwlib/docker-examples

build

To build the example Dockerfile locally:

docker build -f Dockerfile -t wwlib/docker-examples:bash "."

run

docker run -it wwlib/docker-examples:bash

This will start a bash prompt, like:

root@f56f6421a21e:/usr/src/app#

Try it out using:

# cat /etc/issue
Debian GNU/Linux 9 \n \l

# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

# node --version
v14.18.2

# git version
git version 2.11.0

# pwd
/usr/src/app

# ls -al
total 16
drwxr-xr-x 1 root root 4096 Jan 11 22:25 .
drwxr-xr-x 1 root root 4096 Jan 11 22:25 ..
-rw-r--r-- 1 root root   30 Jan 11 22:11 index.js

# node index.js
Hello, world!

Now you have a Debian linux shell.

To exit:

# exit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.