Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nick@GS65 ~ % lsb_release -a
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu 22.04.1 LTS
- Release: 22.04
- Codename: jammy
- nick@GS65 ~ % sudo apt install apt-transport-https ca-certificates curl software-properties-common
- [sudo] password for nick:
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- ca-certificates is already the newest version (20211016).
- ca-certificates set to manually installed.
- curl is already the newest version (7.81.0-1ubuntu1.4).
- software-properties-common is already the newest version (0.99.22.3).
- software-properties-common set to manually installed.
- The following NEW packages will be installed:
- apt-transport-https
- 0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
- Need to get 1,506 B of archives.
- After this operation, 169 kB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://ru.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 apt-transport-https all 2.4.8 [1,506 B]
- Fetched 1,506 B in 0s (14.3 kB/s)
- Selecting previously unselected package apt-transport-https.
- (Reading database ... 198659 files and directories currently installed.)
- Preparing to unpack .../apt-transport-https_2.4.8_all.deb ...
- Unpacking apt-transport-https (2.4.8) ...
- Setting up apt-transport-https (2.4.8) ...
- nick@GS65 ~ % sudo apt update
- Hit:1 http://ru.archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://ru.archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
- Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
- Get:4 http://ru.archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
- Get:5 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [139 kB]
- Get:6 http://ru.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [636 kB]
- Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [372 kB]
- Get:8 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [84.4 kB]
- Get:9 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [13.1 kB]
- Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [339 kB]
- Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [52.2 kB]
- Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [12.4 kB]
- Get:13 http://ru.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [333 kB]
- Get:14 http://ru.archive.ubuntu.com/ubuntu jammy-updates/main amd64 DEP-11 Metadata [92.9 kB]
- Get:15 http://ru.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [281 kB]
- Get:16 http://ru.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [430 kB]
- Get:17 http://ru.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 DEP-11 Metadata [247 kB]
- Get:18 http://ru.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 DEP-11 Metadata [940 B]
- Get:19 http://ru.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 DEP-11 Metadata [12.5 kB]
- Fetched 3,370 kB in 2s (1,708 kB/s)
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- 34 packages can be upgraded. Run 'apt list --upgradable' to see them.
- nick@GS65 ~ % curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- nick@GS65 ~ %
- nick@GS65 ~ %
- nick@GS65 ~ % echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- nick@GS65 ~ % sudo apt update
- Hit:1 http://ru.archive.ubuntu.com/ubuntu jammy InRelease
- Hit:2 http://ru.archive.ubuntu.com/ubuntu jammy-updates InRelease
- Hit:3 http://ru.archive.ubuntu.com/ubuntu jammy-backports InRelease
- Get:4 https://download.docker.com/linux/ubuntu jammy InRelease [48.9 kB]
- Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
- Get:6 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages [7,756 B]
- Fetched 56.6 kB in 1s (89.9 kB/s)
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- 34 packages can be upgraded. Run 'apt list --upgradable' to see them.
- nick@GS65 ~ % apt-cache policy docker-ce
- docker-ce:
- Installed: (none)
- Candidate: 5:20.10.19~3-0~ubuntu-jammy
- Version table:
- 5:20.10.19~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- 5:20.10.18~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- 5:20.10.17~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- 5:20.10.16~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- 5:20.10.15~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- 5:20.10.14~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- 5:20.10.13~3-0~ubuntu-jammy 500
- 500 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages
- nick@GS65 ~ % sudo apt install docker-ce
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- The following additional packages will be installed:
- containerd.io docker-ce-cli docker-ce-rootless-extras docker-scan-plugin libslirp0 pigz slirp4netns
- Suggested packages:
- aufs-tools cgroupfs-mount | cgroup-lite
- The following NEW packages will be installed:
- containerd.io docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin libslirp0 pigz slirp4netns
- 0 upgraded, 8 newly installed, 0 to remove and 34 not upgraded.
- Need to get 102 MB of archives.
- After this operation, 397 MB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 pigz amd64 2.6-1 [63.6 kB]
- Get:2 http://ru.archive.ubuntu.com/ubuntu jammy/main amd64 libslirp0 amd64 4.6.1-1build1 [61.5 kB]
- Get:3 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 slirp4netns amd64 1.0.1-2 [28.2 kB]
- Get:4 https://download.docker.com/linux/ubuntu jammy/stable amd64 containerd.io amd64 1.6.8-1 [28.1 MB]
- Get:5 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce-cli amd64 5:20.10.19~3-0~ubuntu-jammy [41.5 MB]
- Get:6 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce amd64 5:20.10.19~3-0~ubuntu-jammy [20.5 MB]
- Get:7 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce-rootless-extras amd64 5:20.10.19~3-0~ubuntu-jammy [8,389 kB]
- Get:8 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-scan-plugin amd64 0.17.0~ubuntu-jammy [3,521 kB]
- Fetched 102 MB in 16s (6,204 kB/s)
- Selecting previously unselected package pigz.
- (Reading database ... 198663 files and directories currently installed.)
- Preparing to unpack .../0-pigz_2.6-1_amd64.deb ...
- Unpacking pigz (2.6-1) ...
- Selecting previously unselected package containerd.io.
- Preparing to unpack .../1-containerd.io_1.6.8-1_amd64.deb ...
- Unpacking containerd.io (1.6.8-1) ...
- Selecting previously unselected package docker-ce-cli.
- Preparing to unpack .../2-docker-ce-cli_5%3a20.10.19~3-0~ubuntu-jammy_amd64.deb ...
- Unpacking docker-ce-cli (5:20.10.19~3-0~ubuntu-jammy) ...
- Selecting previously unselected package docker-ce.
- Preparing to unpack .../3-docker-ce_5%3a20.10.19~3-0~ubuntu-jammy_amd64.deb ...
- Unpacking docker-ce (5:20.10.19~3-0~ubuntu-jammy) ...
- Selecting previously unselected package docker-ce-rootless-extras.
- Preparing to unpack .../4-docker-ce-rootless-extras_5%3a20.10.19~3-0~ubuntu-jammy_amd64.deb ...
- Unpacking docker-ce-rootless-extras (5:20.10.19~3-0~ubuntu-jammy) ...
- Selecting previously unselected package docker-scan-plugin.
- Preparing to unpack .../5-docker-scan-plugin_0.17.0~ubuntu-jammy_amd64.deb ...
- Unpacking docker-scan-plugin (0.17.0~ubuntu-jammy) ...
- Selecting previously unselected package libslirp0:amd64.
- Preparing to unpack .../6-libslirp0_4.6.1-1build1_amd64.deb ...
- Unpacking libslirp0:amd64 (4.6.1-1build1) ...
- Selecting previously unselected package slirp4netns.
- Preparing to unpack .../7-slirp4netns_1.0.1-2_amd64.deb ...
- Unpacking slirp4netns (1.0.1-2) ...
- Setting up docker-scan-plugin (0.17.0~ubuntu-jammy) ...
- Setting up containerd.io (1.6.8-1) ...
- Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
- Setting up docker-ce-cli (5:20.10.19~3-0~ubuntu-jammy) ...
- Setting up libslirp0:amd64 (4.6.1-1build1) ...
- Setting up pigz (2.6-1) ...
- Setting up docker-ce-rootless-extras (5:20.10.19~3-0~ubuntu-jammy) ...
- Setting up slirp4netns (1.0.1-2) ...
- Setting up docker-ce (5:20.10.19~3-0~ubuntu-jammy) ...
- 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.
- Processing triggers for man-db (2.10.2-1) ...
- Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
- nick@GS65 ~ % sudo systemctl status docker
- ● docker.service - Docker Application Container Engine
- Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
- Active: active (running) since Sat 2022-10-15 00:13:57 +06; 1min 55s ago
- TriggeredBy: ● docker.socket
- Docs: https://docs.docker.com
- Main PID: 37134 (dockerd)
- Tasks: 17
- Memory: 25.1M
- CPU: 360ms
- CGroup: /system.slice/docker.service
- └─37134 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
- Oct 15 00:13:56 GS65 dockerd[37134]: time="2022-10-15T00:13:56.823612651+06:00" level=info msg="scheme \"unix\" not register>
- Oct 15 00:13:56 GS65 dockerd[37134]: time="2022-10-15T00:13:56.823640523+06:00" level=info msg="ccResolverWrapper: sending u>
- Oct 15 00:13:56 GS65 dockerd[37134]: time="2022-10-15T00:13:56.823649834+06:00" level=info msg="ClientConn switching balance>
- Oct 15 00:13:56 GS65 dockerd[37134]: time="2022-10-15T00:13:56.898864297+06:00" level=info msg="Loading containers: start."
- Oct 15 00:13:57 GS65 dockerd[37134]: time="2022-10-15T00:13:57.203545187+06:00" level=info msg="Default bridge (docker0) is >
- Oct 15 00:13:57 GS65 dockerd[37134]: time="2022-10-15T00:13:57.340545800+06:00" level=info msg="Loading containers: done."
- Oct 15 00:13:57 GS65 dockerd[37134]: time="2022-10-15T00:13:57.372829132+06:00" level=info msg="Docker daemon" commit=c96464>
- Oct 15 00:13:57 GS65 dockerd[37134]: time="2022-10-15T00:13:57.372984314+06:00" level=info msg="Daemon has completed initial>
- Oct 15 00:13:57 GS65 systemd[1]: Started Docker Application Container Engine.
- Oct 15 00:13:57 GS65 dockerd[37134]: time="2022-10-15T00:13:57.422985463+06:00" level=info msg="API listen on /run/docker.so>
- nick@GS65 ~ %
- nick@GS65 ~ % echo ${USER}
- nick
- nick@GS65 ~ % sudo usermod -aG docker ${USER}
- nick@GS65 ~ % su - ${USER}
- Password:
- Unable to connect to X server
- [1] 37512
- /home/nick/.zshrc:103: command not found: call
- [1] + 37512 exit 127 call ~/.dropbox/dropboxd
- nick@GS65 ~ % groups ⏎
- nick adm cdrom sudo dip plugdev lpadmin lxd sambashare docker
- nick@GS65 ~ % docker -v
- Docker version 20.10.19, build d85ef84
- nick@GS65 ~ % docker ps -a
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- nick@GS65 ~ %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement