unkn0w / noobs

Kolekcja skryptów do szybkiego stawiania usług na serwerach Mikrusa
MIT License
251 stars 64 forks source link

chce dockera dziwny błąd #149

Closed veraciousnottaken closed 1 year ago

veraciousnottaken commented 1 year ago

Podczas wykonywania skryptu na Mikrus4.0 pojawił się błąd, tak jakby otworzyło nową sesję? Wykonane polecenia:

# docker

Command 'docker' not found, but can be installed with:

apt install docker.io

# ./noobs/scripts/chce_dockera.sh
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 336 kB in 1s (538 kB/s)
Reading package lists... Done
...
Setting up docker-ce (5:20.10.22~3-0~ubuntu-focal) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service -> /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket -> /lib/systemd/system/docker.socket.
Setting up docker-compose (1.25.0-1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.19) ...
groupadd: group 'docker' already exists
__git_ps1: command not found

tutaj skrypt niby skończył (w rzeczywistości to nie) wykonuję polecenie docker dla sprawdzenia:

# docker

Usage:  docker [OPTIONS] COMMAND
...
Run 'docker COMMAND --help' for more information on a command.

To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
__git_ps1: command not found
#

Nie wiem co się dzieje, chcę wyjść z konsoli:

# exit
exit
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:c77be1d3a47d0caf71a82dd893ee61ce01f32fc758031a6ec4cf1389248bb833
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

i jestem ponownie w oryginalnym Bashu

loper commented 1 year ago

Wygląda to, jakby zainstalował Ci co trzeba, ale jednocześnie na końcu wszedł w konkretny kontener. Skrypty te były przygotowywane pod niższe wersje Mikrusa, ale zerknę w kod.