- Robot Operating System Cookbook
- Kumar Bipin
- 169字
- 2021-06-18 19:20:51
Adding the Docker repository to APT sources
For Ubuntu 16.04, add the following:
$ echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
For Ubuntu 18.04, add the following:
$ echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list
Updating the package database with the Docker packages from the newly added repository is done as follows:
$ sudo apt-get update
Make sure that we are about to install from the Docker repository instead of the default Ubuntu repository:
$ apt-cache policy docker-engine
Notice that docker-engine is not installed yet; to install docker-engine, use the following command:
$ sudo apt-get install -y docker-engine
Check whether Docker is started or not:
$ sudo systemctl status docker
To start the Docker service, use the following command:
$ sudo service docker start $ docker
We can search for images available on Docker Hub by using the docker command with the search subcommand:
$ sudo docker search Ubuntu
To run the Docker container, use the following command:
$ sudo docker run -it hello-world
推薦閱讀
- 從零開始:數字圖像處理的編程基礎與應用
- 數字媒體應用教程
- Windows系統管理與服務配置
- Visual C++串口通信技術詳解(第2版)
- C語言程序設計
- MySQL數據庫管理與開發(慕課版)
- Apache Mahout Clustering Designs
- Visual C++開發入行真功夫
- 從Java到Web程序設計教程
- Building Dynamics CRM 2015 Dashboards with Power BI
- 零基礎看圖學ScratchJr:少兒趣味編程(全彩大字版)
- Angular Design Patterns
- Python面試通關寶典
- Python機器學習
- Game Programming using Qt 5 Beginner's Guide