CentOS
# (optional) remove old
sudo yum remove -y docker \
docker-ce-cli \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
# Docker
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce
sudo systemctl start docker
sudo systemctl enable docker # start docker at boot up
# (optional) Verify
sudo docker run hello-world
--------------------------FAQ
# When fail to start docker:
firewall-cmd --get-active-zones
firewall-cmd --zone=docker --change-interface=docker0
firewall-cmd --runtime-to-permanent
systemctl restart docker
#
Install docker-compose
# Dcoker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# (optional) Verify
docker-compose --version
Advenced
# Move fat docker to other folder with symlink - Linux (bash)
sudo systemctl stop docker
sudo mv /var/lib/docker /data/.
sudo ln -s /data/docker /var/lib/docker
sudo systemctl start docker
# Move fat docker to other folder with symlink - Windows (Powershell)
move C:\ProgramData\docker\* D:\ProgramData\docker
cmd /c mklink /d C:\ProgramData\docker D:\ProgramData\docker
# Add default Log rotation
sudo bash -c 'cat >> /etc/docker/daemon.json' << EOF
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "512"
}
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
# Execute docker without sudo
sudo groupadd docker
sudo usermod -aG docker $USER
#> Re-login to apply
# Show other docker version
yum list docker-ce --showduplicates | sort -r
# Restart
## daemon
sudo systemctl daemon-reload
## docker service
sudo systemctl restart docker.service
## docker
sudo systemctl restart docker
# Remove stuff
docker container prune # Remove all stopped containers
docker volume prune # Remove all unused volumes
docker image prune # Remove unused images
docker system prune # All of the above, in this order: containers, volumes, images
docker ps -a -q | % { docker rm $_ } # Remove container with PowerShell
docker rm $(docker ps -a -q) # Remove container with Bash
docker volume rm $(docker volume ls -f dangling=true -q)
# (optional) Remove old
sudo apt-get remove -y docker-ce docker-ce-cli docker docker-engine docker.io containerd runc
# Setting up
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
## (optional) Verify fingerprint
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Install latest
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
## (optional) Install other version. PS."18.09 no need to install docker-ce-cli"
apt-cache madison docker-ce
sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
# (optional) Verify
sudo docker run hello-world
I am really inspired together with your writing abilities as smartly as with the layout to your weblog.
Is this a paid theme or did you customize it your self?
Anyway stay up the nice high quality writing,
it’s rare to look a nice weblog like this one these days.. http://herreramedical.org/dapoxetine
After I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and
from now on each time a comment is added I
get four emails with the same comment. Is there an easy method you can remove me from that service?
Appreciate it! http://antiibioticsland.com/Doxycycline.htm
Thank you for another fantastic article. The place else may just anyone get that
kind of info in such an ideal manner of writing? I’ve a presentation subsequent week, and I’m on the search for such info. https://buszcentrum.com/deltasone.htm
I got this site from my friend who told me on the topic of
this website and now this time I am visiting this web page and reading very
informative articles or reviews at this time. https://buszcentrum.com/nolvadex.htm
Hi to all, the contents present at this web site are actually amazing for people experience, well, keep up the nice work fellows. http://www.deinformedvoters.org/vidalista-online
This web site definitely has all the information I needed about this subject and didn’t know who to ask. https://tadalafili.com/
It’s very trouble-free to find out any topic on web as compared to textbooks,
as I found this piece of writing at this web site. http://ciaalis2u.com/
Hi! This post could not be written any better! Reading this post
reminds me of my good old room mate! He always kept chatting about this.
I will forward this write-up to him. Pretty sure he will have a good
read. Thanks for sharing! http://harmonyhomesltd.com/Ivermectinum-pharmacology.html
cialis at canadian pharmacy tadalafil daily online
generic cialis tadalafil canada generic tadalafil
generic viagra sildenafil low price viagra
ivermectin oral solution stromectol 12mg online
define sildenafil que es el sildenafil
ivermectin australia stromectol 3 mg
tadalafil 20mg price in india tadalafil 20mg reviews
buy ivermectin for humans uk cost of stromectol medication
cost of ivermectin ivermectin 2mg
stromectol australia ivermectin 500mg
where to buy stromectol ivermectin price comparison
stromectol 6 mg tablet ivermectin 50ml
ivermectin how much does ivermectin cost
generic name for ivermectin price of stromectol
ivermectin 9mg stromectol tablets uk
ivermectin 0.5 lotion india stromectol xr
stromectol online pharmacy ivermectin pill cost
stromectol xr ivermectin 200
ivermectin topical ivermectin uk
does cialis work for women cialis by mail
stromectol tab price ivermectin 0.5 lotion india
ivermectin 0.1 uk ivermectin 500mg
what is sildenafil 20 mg buy female viagra
tadalafil coupon cialis cost cvs
ivermectin generic cream ivermectin 1
tadalafil peptides tadalafil 20mg price
cialis online pharmacy cialis online
sildenafil 100mg how to take sildenafil or tadalafil
who invented tadalafil tadalafil 50mg
viagra samples viagra
tadalafil 20 mg best price pharmaglobalrx tadalafil
pharmacy online program canada drugs viagra
mexican border pharmacies why are prescription drugs cheaper in canada
best prices for levitra viagra vs cialis vs levitra forum
buying online pharmacy canada pharmacy 365
cialis before and after pictures is generic cialis available in canada
vicodin online pharmacy canada royal canadian pharmacy
where can i buy viagra over the counter buy viagra australia paypal
viagra 88 buy generic viagra online cheap
list of canadian pharmacies online karns grocery store have a pharmacy?
stromectol scabies ivermectin for eczema
buy ivermectin for dogs ivermectin for rabbits
what makes you harder viagra or cialis when should i take cialis
tadalafil 50mg blue sky tadalafil reviews
canada drug pharmacy promo code is it legal to get prescription drugs from canada
difference between viagra and levitra levitra 20 mg cost walmart
cialis bestellen deutschland where can i buy cialis in the uk
sildenafil uk sildenafil 110 mg
cialis generic alternative does cialis have a generic
Maxalt canada on line drugs
Toradol Prozac
generic pharmacy online what are the best online canadian pharmacies
rx pharmacy forum become a pharmacy tech online
canadian pharmacy medications dillons pharmacy
tom thumb pharmacy qsymia canada pharmacy
sky pharmacy online walmart pharmacy order online
buy modafinil 200mg buy modafinil 100mg generic provigil 100mg generic
canadian neighborhood pharmacy canadian pharmacy ltd.
modafinil buy online buy provigil 200mg for sale
online canadian pharmacy phentermine domperidone canada drugs
when Is Cialis Going Off Patent?
modafinil cheap order generic modafinil 200mg
provigil 200mg pills
when Does Cialis Go Generic?
stromectol generic stromectol canadian pharmacy
stromectol 12mg for sale http://stromectolusdt.com/
stromectol 3 mg tablets buy ivermectin 6mg
order ivermectin from india ivermectin canada stromectol otc
https://www.ivermectinusd.com/ buy ivermectin canada
purchase ivermectin online https://ivermectinuni.com/
http://www.ivermectinusd.com/ ivermectin online