Skip to content

Commit 8376f2e

Browse files
author
Murilo Marinho
committed
[docker] Adjusting the install script to not run the hello-world example with sudo.
1 parent fd8c499 commit 8376f2e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

docs/source/docker/index.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ https://docs.docker.com/engine/install/ubuntu/
2121
:language: bash
2222
:lines: 5-
2323

24+
.. warning::
25+
26+
It's best not to call ``sudo docker ...`` to test it yet. If you're adding your user to the ``docker`` group,
27+
running ``docker`` as ``sudo`` once will change the access properties of the socket. It's best to test it after
28+
adding your user to the ``docker`` group.
29+
2430
Adding user to docker group
2531
---------------------------
2632

@@ -61,9 +67,17 @@ If you're curious, here are the main contents of the script.
6167
:language: bash
6268
:lines: 16-
6369

70+
6471
Basic testing
6572
-------------
6673

74+
.. code-block:: console
75+
76+
docker run hello-world
77+
78+
SAS testing
79+
-----------
80+
6781
For the purposes of this illustration we will use the image
6882
``murilomarinho/sas``.
6983

docs/source/docker/scripts/install_docker.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ sudo apt-get update
1818

1919
# Install the packages
2020
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
21-
22-
# Verify installation
23-
sudo docker run hello-world
24-
25-

0 commit comments

Comments
 (0)