- 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
- Getting Started with oVirt 3.3
- Extending Puppet
- vSphere Virtual Machine Management
- SharePoint 2013 應用開發實戰
- 高性能Linux服務器構建實戰:系統安全、故障排查、自動化運維與集群架構
- Windows Server 2019 Administration Fundamentals
- 嵌入式實時操作系統:RT-Thread設計與實現
- Kali Linux 2018:Windows Penetration Testing
- NetDevOps入門與實踐
- 計算機系統的自主設計
- Vim 8文本處理實戰
- Windows 7使用詳解(修訂版)
- Heroku Cloud Application Development
- Ubuntu Linux操作系統實用教程