Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(original)

...

Code Block
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

...

  1. Verify that the Docker Engine installation is successful by running the hello-world image.

    Code Block
    $ sudo docker run hello-world

    This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits.

...

sudo usermod -aG docker [non-root user]

Tip: “whoami” returns current username

but, “docker” group is only for sudo…. (help) so in your user

...

pip install --user --upgrade fmriprep-dockerpre

Add wrapper to path

sudo gedit .bashrc or .tcshrc

Add line

bash:

export PATH = ${PATH}:/home/luke/.local/bin/

c/tc shell

set path = ($path /home/[user]/.local/bin/)

...

[~] sudo apt-get install http://docker.io

Where are we….?

So from the above, we can open a terminal, then switch to superuser to be able to run commands withuot prepending with sudo

Code Block
su - luke
docker run --rm hello-world