You are viewing the RapidMiner Deployment documentation for version 9.6 -Check here for latest version
Install Docker on Linux
Before you begin
If you are unfamiliar with Docker, you may believe that Docker will make your life more complicated. Not only do you have to install a server; now you also have to learn how to use Docker! The object of this deployment documentation is to convince you that it's worth the effort, because Docker can make it that much easier to deploy the RapidMiner platform.
The emphasis here is on installing Docker and deploying RapidMiner as quickly as possible, using:
a variety ofdocker-compose templates.
We start with the following assumptions:
You have installed or have access to a Linux host,and
- 你can connect to the Linux host via
ssh
,or - 你have local access (so that
ssh
is unnecessary)
- 你can connect to the Linux host via
- The hostname (or IP address) of the Linux host is
- You haveroot(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
The brackets here indicate that you must replace
Download the Docker quick & easy install script
The quick & easy install script is also available ongithub.
The Docker installation script assumes there is no previous installation of Docker. If Docker is already installed, you can jump ahead todocker-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旋度
orwget
, assuming one of these commands is pre-installed. If they are not pre-installed, you can first install them, before proceeding as follows:
连接到Linux主机:
ssh
@ Download the Docker quick & easy install script
using
旋度
:旋度-fsSL https://get.docker.com -o get-docker.sh
or
wget
:wget -O get-docker.sh https://get.docker.com/
You are now ready toinstall Docker.
Alternative method: use scp to transfer the script
If you do not yet have旋度
orwget
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.
Download theDocker quick & easy install scriptto any other computer.
Rename the script to
get-docker.sh
Copy the script to the Linux host using
scp
or any analogous tool:scp get-docker.sh
@ : Note the all-important colon (:) at the end of this command. The file is saved on the Linux host in
/home/
.连接到Linux主机:
ssh
@
You are now ready toinstall Docker.
Install Docker
At this point, you are connected to the Linux host, and the quick & easy install scriptget-docker.sh
is in the current working directory. If you typels get-docker.sh
, 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.
- 它会创建一个引用码头工人Linux贮藏ories 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 runget-docker.sh
asrootuser. If you did not log in asroot, you must first becomeroot. To becomeroot, type one of the following commands:
If
sudo
is installed (password): sudo su
If
sudo
is not installed or theuser is not in the sudo
group (rootpassword):su
Asrootuser, continue as follows:
Start the installation process:
sh get-docker.sh
Hint: You can simulate installation with the command
sh get-docker.sh --dry-run
(optional) When installation is completed, you can test docker:
docker run hello-world
Install
docker-compose
, after checking the version number:旋度-L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
(optional) Incorporatebash completion:
旋度-L https://raw.githubusercontent.com/docker/compose/1.25.3/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
(optional) Test
docker-compose
:docker-compose --version
(recommended) If you plan to run
docker-compose
as a non-root user, make that user a member of thedocker
group:usermod -aG docker
To register group membership in the
docker
group, theuser has to log out and log back in.
Docker is now installed.
More detailed installation documentation can be found on theDocker website, for a variety of Linux distributions.
Read more:Deploy RapidMiner