Instalare Engine Docker¶
Necesar Sistem Operare¶
Sistemul de operare instalat pe serverul de aplicatie trebuie sa fie unul din urmatoarele:
Oracle Linux minim versiunea 7 (recomandat, licentiere gratuita)
Cent OS Linux minim versiunea 7 (licentiere gratuita)
Red Hat Linux minim versiunea 7
Linux¶
Intr-o linie de comanda sau sesiune ssh se executa comenzile :
Pentru instalare versiune Docker Engine CE - Latest Stable (CentOS / RedHat / Oracle Linux versiunea 7)
yum install dos2unix curl wget -y
curl -H 'Cache-Control: no-cache' http://static.emsys.ro/docker/install_docker_ce_linux_7.sh | dos2unix | sh
Pentru instalare versiune Docker Engine CE - Latest Stable (Alma Linux / RedHat / Oracle Linux / Rocky Linux versiunea 8 sau 9)
yum install dos2unix curl wget -y
curl -H 'Cache-Control: no-cache' http://static.emsys.ro/docker/install_docker_ce_linux_8_9.sh | dos2unix | sh
Dupa instalare, pentru a verifica functionarea serviciului docker se ruleaza comanda:
docker version
Exemplu de rezultat fara erori:
Client:
Version: 18.06.0-ce
API version: 1.38
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:08:18 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.0-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul 18 19:10:42 2018
OS/Arch: linux/amd64
Experimental: false
Exemplu de rezultat cu erori:
docker: command not found
Windows¶
msinfo32
docker version
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: false
Notă
Dupa restartul sistemului de operare, pentru pornirea serviciului docker trebuie facut log on.