Install Docker
Last updated
Last updated
In this example we set up Docker on a Debian 9 system and install it via package sources. There may be deviations in another operating system!
Step 1: Connect to your server with Putty.
Step 2: As far as you are connected to your server via Putty, the GPG key, i.e. the key file from Docker, must be added to our system at the beginning:
Then we add Docker to our package sources so that we can install the package via apt-get.
Step 3: Now we can download Docker. It is important that we still enable apt-get to download packages from HTTP (S) pages. Here is the command:
Press enter and let it run. Then enter and execute the following commands:
When all of that is done, we can see if Docker is running:
If it looks like this and it says "Active (running)" then Docker was installed completely without any problems. With a docker run hello-world you can then check whether Docker is also running correctly. The output should look like this:
Docker installation was successful. Now you can get started and use Docker!