Ubuntu Quick Tip 4 -How to install Docker on your Ubuntu 20.04 server or desktop

Опубликовано: 01 Январь 1970
на канале: JDs Tech Tips
72
1

Learn how to install the docker container application in under 5 minutes on your Linux Desktop or server this tip focuses on the basic docker install and setup.

Commands Used in this Tutorial

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubu... | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}
su - ${USER}


Ok installed
We can run docker by simply using the docker command

How do we run containers.

docker run hello-world
docker run ngix
docker run centos


docker images
docker run -it ubuntu

Type exit to quit the container shell
Notice the shell changes to the container id, you are now insider the the container and can install software and do most other things.
remember to commit your changes to the image
docker commit -m "What you did to the image" -a "Author Name" container_id repository/new_image_name

Check what containers are active with
docker ps -a

Eg
docker start 1c08a7a0d0e4
docker stop name


Tools and Links used in this Video:
Get a droplet in digital Ocean https://m.do.co/c/f2e5d955a265
Brave Browser https://brave.com/jds304
Putty for ssh access :https://putty.org

Checkout the docker compose tutorial for the next video in this series.


Help Support the Channel:
To help support the channel we have listed a few decent providers that we like and use ourselves.If you purchase a service from one of these links we may (hopefully) receive a commission,but it will not cost you anything extra.
It helps pay for our advertising,hosting and running costs and allows us to post free how too content etc.


Смотрите видео Ubuntu Quick Tip 4 -How to install Docker on your Ubuntu 20.04 server or desktop онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь JDs Tech Tips 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 72 раз и оно понравилось 1 людям.