Coder Social home page Coder Social logo

rakhithjk / ubuntu-with-utils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjitech/ubuntu-with-utils

0.0 2.0 0.0 10 KB

a docker image of ubuntu with some daily utilities such as sudo, bash-completion vim less man lsof ping iptables wget curl 7z git

License: MIT License

Dockerfile 100.00%

ubuntu-with-utils's Introduction

ubuntu-with-utils

A docker image with basic development and diagnostic tools:

  • bash-completion
  • vim less man jq
  • lsof tree pstree
  • ping netstat ss arp nslookup dig host iptables
  • nc ncat socat nmap
  • curl wget
  • 7z
  • sudo
  • git
  • further develop tool such as python, node ... are NOT included

By default this docker container runs as a sudo-able user devuser so can work with some anti-root tools.

Usage

  • start a interactive bash shell

    docker run -it osexp2000/ubuntu-with-utils
    

    screenshot:

    devuser@446f84fa0d63:~$ id; pwd
    uid=1000(devuser) gid=1000(devuser) groups=1000(devuser),27(sudo)
    /home/devuser
    devuser@446f84fa0d63:~$ sudo apt update && sudo apt -y install python3
    
  • run command directly

    $ docker run -it osexp2000/ubuntu-with-utils COMMAND ARGS...
    

Notes

  • the input device is not a TTY

    When this error happens, please remove the t option (allocate tty).

    • NG
      $ echo "echo OK" | docker -it osexp2000/ubuntu-with-utils
      the input device is not a TTY
      
    • OK
      $ echo "echo OK" | docker -i osexp2000/ubuntu-with-utils
      OK
      
  • sudo: unable to resolve host HOSTNAME

    This warning happens when the container is started with --net host. Please add option --add-host HOSTNAME:127.0.0.1

    • NG
      $ docker run -it --net host osexp2000/ubuntu-with-utils sudo echo OK
      sudo: unable to resolve host HOSTNAME
      OK
      
    • OK
      $ docker run -it --net host --add-host HOSTNAME:127.0.0.1 osexp2000/ubuntu-with-utils sudo echo OK
      OK
      
      if the hostname is non-deterministic, you can fix hostname(for the container) with --hostname HOSTNAME.
      $ docker run -it --net host --add-host HOSTNAME:127.0.0.1 --hostname HOSTNAME osexp2000/ubuntu-with-utils sudo echo OK
      OK
      

ubuntu-with-utils's People

Contributors

jjqq2013 avatar

Watchers

 avatar  avatar

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.