Coder Social home page Coder Social logo

dorun's Introduction

dorun

dorun is a simple Docker helper to easily manage Containers. You can install some of your favorite apps (either GUI or Non-GUI) inside Container with native experience.

Prerequisites

  • Docker Service Must Already be Running/Active

    Before you can run dorun, the Docker service must be running. In some distros check with systemctl status docker. Please install Docker Engine if you don't have one. Follow the guide on each distro. Or try https://docs.docker.com/engine/install/.

  • Can run docker commands without root

    In order to run the docker command without root, you can add your user to the docker group and then re-login to apply. The general method can be seen at https://docs.docker.com/engine/install/linux-postinstall/. The group name may vary depending on the distro you are using. You can check with cat /etc/group. If the docker group is already there, just add your user, for example with the command sudo usermod -aG docker your_user.

Installation

dorun is just a shell script which is pretty easy to use. You can download it with wget:

wget https://raw.githubusercontent.com/nggit/dorun/master/dorun

then change the permissions to executable:

chmod +x dorun

Usage

Please choose the distribution image you want to use. Images can be created with Dockerfile or fetched directly from the Docker Hub repo for example with docker pull debian. Then run in terminal:

./dorun --image=debian

The above command will enter the shell. If you already have a program installed in the Container, for example firefox then it can be run as follows:

./dorun --image=debian firefox

The above command can of course be used as a shortcut, or you can install a launcher in the Container, such as rofi as in the following demo:

dorun

Wizard Mode

In the previous command example, the --image=IMAGE option means using a specific IMAGE. In "Wizard Mode" just use --image and it will show the available IMAGE to choose:

dorun wizard mode

Troubleshoot

If the username in the Container is I have no name! please exit then run dorun with root:

sudo ./dorun --image=IMAGE

Then add the user according to the user on your main system, for example:

useradd your_user

You may also want to set a root password with the passwd command. So that later you can easily switch to root using su.

Help

To see available dorun options use:

./dorun --help

Warning

dorun by default shares several directories with the main system i.e. Documents, Downloads, etc. and is read-writeable. This is for convenience. But I hope you will be aware. Everything you do with dorun is entirely your own responsibility.

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.