Question about Docker installation method

Hello,

I use Docker regularly but I have a question about its installation.

In the Gladys docs, installation is done via a command line, the .sh

curl -sSL https://get.docker.com | sh

Which clearly makes the user’s task easier, but in the Docker docs it says that this method should only be used for development.

The convenience script is not recommended for production environments

What is the difference between this and the method recommended by Docker?

Thanks in advance

As I recall

  • the script installs Docker for the root user (instead of doing it for a specific group with particular permissions)
  • it installs everything (plugins, the command-line, …) whereas in a production environment you only want what’s necessary
  • it installs the latest version and does not allow for updates. On a production system, you prefer to manage updates manually and know which version to install.

For our purposes, the script is more than sufficient.
A quick apt-get upgrade (or other package manager) will update it.

2 Likes

Thanks. I don’t think it’s installing Compose?

No, indeed, you have to install it separately.

1 Like

Thank you for the explanations.

Are you sure? It seems to me that I have docker-compose installed when I install Docker with this script

The installation is indeed in the script :man_facepalming: (I’m confusing it with my previous installation)

I should redo the test because, from what I remember, the command to find out the Docker Compose version didn’t work (didn’t return anything).

Anyway, the question was more out of curiosity.