- Troubleshooting Docker
- Vaibhav Kohli Rajdeep Dua John Wooten
- 184字
- 2021-07-09 18:45:02
Installing Docker with script
Update your DNF package, as follows:
$ sudo dnf update
Running the Docker installation script
The Docker installation can also be done in a quick and easy way by executing the shell script and getting it from the official Docker website:
$ curl -fsSL https://get.docker.com/ | sh + sh -c 'sleep 3; dnf -y -q install docker-engine'
Start the Docker daemon:
$ sudo systemctl start docker
Docker run hello-world
:
$ sudo docker run hello-world
To create a Docker group and add a user, follow the steps mentioned, as follows:
$ sudo groupadd docker $ sudo usermod -aG docker your_username
Log out and log in with the user to make sure that your user is created successfully:
$ docker run hello-world
In order to uninstall Docker, follow these steps:
# sudo dnf -y remove docker-engine.x86_64
The truncated output of the preceding command is listed as follows:
Dependencies resolved. Transaction Summary ================================================================ Remove 7 Packages Installed size: 57 M Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction ... Complete! [root@osboxes ~]# rm -rf /var/lib/docker
推薦閱讀
- Mastering ElasticSearch
- Mastering vRealize Operations Manager(Second Edition)
- Ansible權威指南
- 網絡操作系統:Windows Server 2003管理與應用
- 深入Linux內核架構與底層原理(第2版)
- 網絡操作系統管理與應用(第三版)
- VMware NSX Cookbook
- Application Development in iOS 7
- Mastering Reactive JavaScript
- 深入淺出Node.js
- Windows 8實戰從入門到精通(超值版)
- Python UNIX和Linux系統管理指南
- Android應用性能優化最佳實踐
- 再也不踩坑的kubernetes實戰指南
- 鴻蒙HarmonyOS應用開發從入門到精通