Editing
Docker Installation
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
__NOTOC__ = Docker Community Edition install = This installs the official Docker distrubution from the '''community edition''' repository. == Fedora == The docker team officially supports Fedora, but the rapid pace of Fedora releases (every 6 months) and the changing cgroups support (fedora has moved to v2 but docker is still on v1) has led to delays with the Fedora 33 release of docker-ce. I expect this will happen again for future releases, so the instructions below accommodate this possibility. === Prerequisites === * [[Basic Fedora 31+ Installation]] * [[CUDA + NVIDIA drivers]] (if GPU is present) === Set up Docker-CE Repository === sudo dnf config-manager --add-repo <nowiki>https://download.docker.com/linux/centos/docker-ce.repo</nowiki> dnf list docker\* If you don't see the '''docker-ce*''' packages in the listing, you need to enable the test repository (CAUTION): sudo dnf config-manager --set-enabled docker-ce-test Then you install the packages sudo dnf install docker-ce docker-ce-cli containerd.io == CentOS == ( originally from https://docs.docker.com/engine/installation/linux/centos/ ) === Prerequisites === * [[Basic CentOS 7 Installation]] * [[CUDA + NVIDIA drivers]] (if GPU is present) === Set up Docker-CE Repository === sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-manager --add-repo <nowiki>https://download.docker.com/linux/centos/docker-ce.repo</nowiki> === Install Docker === sudo yum install -y docker-ce docker-ce-cli containerd.io == Debian == ( originally from https://docs.docker.com/engine/installation/linux/debian/ ) === Prerequisites === * [[Basic Debian Installation]] === Set up Docker-CE Repository === sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL <nowiki>https://download.docker.com/linux/debian/gpg</nowiki> | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] <nowiki>https://download.docker.com/linux/debian</nowiki> $(lsb_release -cs) stable" sudo apt-get update === Install Docker === sudo apt-get install -y docker-ce docker-ce-cli containerd.io == Finishing the Install == Make sure the docker daemon is running and set up to start automatically (should already be done by the package install): sudo systemctl enable --now docker Test installation sudo docker run --rm hello-world sudo docker image rm -f hello-world Enable standard user access to docker commands (requires $USER to log out and back in to activate) sudo groupadd docker sudo usermod -aG docker $USER In order to access the local repositories, we need to copy the certs into the local docker config sudo scp -r aslan:/etc/docker/certs.d /etc/docker Copy over the .docker directory from aslan for both root and user(s) to get login credentials sudo scp -r aslan:.docker /root scp -r aslan:.docker ~ = GPU Nodes = On GPU-enabled nodes, install the [[NVIDIA Docker Runtime]].
Summary:
Please note that all contributions to WilliamsNet Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WilliamsNet Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Commons
Architecture
How-To
Systems
Hardware
SysAdmin
Kubernetes
OpenSearch
Special
Pages to create
All pages
Recent changes
Random page
Help about MediaWiki
Formatting Help
Tools
What links here
Related changes
Special pages
Page information