Docker Install Sh

2/13/2022by admin

Alpine docker image doesn't have bash installed by default. You will need to add following commands to get bash: RUN apk update && apk add bash If youre using Alpine 3.3+ then you can just do. RUN apk add -no-cache bash to keep docker image size small. (Thanks to comment from @sprkysnrky). Home of the script that lives at and! The purpose of the install script is for a convenience for quickly installing the latest Docker-CE releases on the supported linux distros. It is not recommended to depend on this script for deployment to production systems.

If you are unfamiliar with Docker, you may believe that Docker will make your life more complicated.The truth is quite the opposite.Learn just a little about Docker, and you can easily deploy RapidMiner AI Hub,with all its integrated services, via a pre-configured docker-compose template.

Three easy steps, and you're done: Docker does the rest!

  1. Ready -- For production purposes, you should install Docker on server hardware (or in the cloud), but you can experiment on your laptop.

    • Check the prerequisites,
    • Download the script, and
    • Install Docker.
  2. Set -- Choose a template for your RapidMiner AI Hub, depending on your needs:

    • choose one of several templates that we provide, and
    • copy the template files docker-compose.yml and .env to the machine where you installed Docker.

    These files are pre-configured to work out of the box, but you can modify them to suit your preferences.

  3. Go! -- Follow the detailed instructions, and execute the docker-compose commands

  4. Docker automagically downloads the images you need, and starts RapidMiner AI Hub.

Before you begin

The emphasis here is on installing Docker on Linux anddeploying RapidMiner AI Hub as quickly as possible, using:

  1. the Docker quick & easy install script

  2. a variety of docker-compose templates.

We start with the following assumptions:

  • You have installed or have access to a Linux host, and

    • you can connect to the Linux host via ssh, or
    • you have local access (so that ssh is unnecessary)
  • The hostname (or IP address) of the Linux host is <>
  • You have root (system administrator) access to the Linux host

All the commands will be issued from the command line, so a GUI is unnecessary.For security reasons you may prefer to run docker as an ordinary user,and assuming there is such a user, we'll call him <rapidminer>.

The brackets here indicate that you must replace <rapidminer> by the actual username and<> by the actual hostname or IP address of the host where RapidMiner AI Hub will be installed.

Download the Docker quick & easy install script

The quick & easy install script is also available on github.

The Docker installation script assumes there is no previous installation of Docker.If Docker is already installed, you can jump ahead to docker-compose templates.If an older version of Docker is installed, you should first uninstall it.


The script installs Docker CE (Community Edition), assuming you are using one of the following Linux distributions, or a derivative:

  • CentOS
  • Debian
  • Fedora
  • Oracle Linux
  • Red Hat
  • SUSE
  • Ubuntu

The simplest way to get started is to use curl or wget, assuming one of these commands is pre-installed.If they are not pre-installed, you can first install them, before proceeding as follows:

  1. Connect to the Linux host:

  2. Download the Docker quick & easy install script

    using curl:


You are now ready to install Docker.

Alternative method: use scp to transfer the script

If you do not yet have curl or wget available on the Linux host, and you don't know how to install them,here is an alternative method for downloading and transferring the script to the host.In general, the method described above is preferred.

  1. Download the Docker quick & easy install script to any other computer.

  2. Rename the script to

  3. Copy the script to the Linux host using scp or any analogous tool:

    Note the all-important colon (:) at the end of this command. The file is saved on the Linux host in /home/<rapidminer>.

  4. Connect to the Linux host:

You are now ready to install Docker.

Install Docker

At this point, you are connected to the Linux host, and the quick & easyinstall script is in the current working directory.If you type ls, it should be listed.

When you run the script, it will take the following actions:

  • It downloads and installs the software prerequisites for running Docker on Linux, using the tools that are native to your Linux host. If that software is already installed, there will be no change.
  • It creates a reference to the Docker Linux repositories in the configuration files, so that you can download (and later update) the Docker software directly.
  • It downloads and installs Docker, using the tools that are native to your Linux host.

To install Docker, you must run as root user.If you did not log in as root, you must first become root.To become root, type one of the following commands:

  • If sudo is installed (<rapidminer> password): sudo su

  • If sudo is not installed or the <rapidminer> user is not in the sudo group (root password): su

As root user, continue as follows:

  1. Start the installation process:

    Hint: You can simulate installation with the command sh --dry-run

  2. (optional) When installation is completed, you can test docker:

  3. Install docker-compose, after checking the version number:

  4. (optional) Incorporate bash completion:

  5. (optional) Test docker-compose:

  6. (recommended) If you plan to run docker-compose as a non-root user, make that user a member of the docker group:

    To register group membership in the docker group, the <rapidminer> user has to log out and log back in.

Docker is now installed.

More detailed installation documentation can be found on the Docker website, for a variety of Linux distributions.

Read more: Deploy RapidMiner AI Hub using pre-configured deployment templates

Estimated reading time: 3 minutes

Docker Install Sh

Compose comes with command completionfor the bash and zsh shell.

Install command completion



Make sure bash completion is installed.


  1. On a current Linux OS (in a non-minimal installation), bash completion should beavailable.

  2. Place the completion script in /etc/bash_completion.d/.

  3. Reload your terminal. You can close and then open a new terminal, or reload your setting with source ~/.bashrc command in your current terminal.


Install via Homebrew
  1. Install with brew install bash-completion.
  2. After the installation, Brew displays the installation path. Make sure to place the completion script in the path.

    For example, place the completion script in /usr/local/etc/bash_completion.d/.

  3. Add the following to your ~/.bash_profile:

  4. You can source your ~/.bash_profile or launch a new terminal to utilizecompletion.
Install via MacPorts
  1. Run sudo port install bash-completion to install bash completion.

  2. Add the following lines to ~/.bash_profile:

  3. You can source your ~/.bash_profile or launch a new terminal to utilizecompletion.


Make sure you have installed oh-my-zsh on your computer.

With oh-my-zsh shell

Add docker and docker-compose to the plugins list in ~/.zshrc to runautocompletion within the oh-my-zsh shell. In the following example, ...represent other Zsh plugins you may have installed. After that, type source ~/.zshrc to bring the changes. To test whether it is successful, type docker ps + tab.

Docker Server Shutdown

Without oh-my-zsh shell

  1. Place the completion script in your /path/to/zsh/completion (typically ~/.zsh/completion/):

  2. Include the directory in your $fpath by adding in ~/.zshrc:

  3. Make sure compinit is loaded or do it by adding in ~/.zshrc:

  4. Then reload your shell:

Available completions

Docker Install Sh Linux

Depending on what you typed on the command line so far, it completes:

Docker-compose install

Docker Install Shaarli

  • available docker-compose commands
  • options that are available for a particular command
  • service names that make sense in a given context, such as services with running or stopped instances or services based on images vs. services based on Dockerfiles. For docker-compose scale, completed service names automatically have “=” appended.
  • arguments for selected options. For example, docker-compose kill -s completes some signals like SIGHUP and SIGUSR1.

Enjoy working with Compose faster and with fewer typos!

Compose documentation

Docker Install Ubuntu

fig, composition, compose, docker, orchestration, cli, reference
Comments are closed.