- Python Reinforcement Learning
- Sudharsan Ravichandiran Sean Saito Rajalingappaa Shanmugamani Yang Wenzhuo
- 319字
- 2021-06-24 15:17:27
Installing Docker
After installing Anaconda, we need to install Docker. Docker makes it easy to deploy applications to production. Say you built an application in your localhost that has TensorFlow and some other libraries and you want to deploy your applications into a server. You would need to install all those dependencies on the server. But with Docker, we can pack our application with its dependencies, which is called a container, and we can simply run our applications on the server without using any external dependency with our packed Docker container. OpenAI has no support for Windows, so to install OpenAI in Windows we need to use Docker. Also, the majority of OpenAI Universe's environment needs Docker to simulate the environment. Now let's see how to install Docker.
To download Docker, go to https://docs.docker.com/ where you will see an option called Get Docker; if you select that, you will see options for different operating systems. If you are using either Windows or Mac, you can download Docker and install it directly using the graphical installer.
If you are using Linux, follow these steps:
Open your Terminal and type the following:
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common
Then type:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
And then type:
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
Finally, type:
sudo apt-get update sudo apt-get install docker-ce
We need to be a member of the Docker user group to start using Docker. You can join the Docker user group via the following command:
sudo adduser $(whoami) docker newgrp docker groups
We can test the Docker installation by running the built-in hello-world program:
sudo service docker start sudo docker run hello-world
In order to avoid using sudo to use Docker every time, we can use the following command:
sudo groupadd docker
sudo usermod -aG docker $USER sudo reboot
- 數(shù)據(jù)浪潮
- 數(shù)據(jù)分析實(shí)戰(zhàn):基于EXCEL和SPSS系列工具的實(shí)踐
- 數(shù)據(jù)庫原理及應(yīng)用教程(第4版)(微課版)
- Python數(shù)據(jù)挖掘:入門、進(jìn)階與實(shí)用案例分析
- 復(fù)雜性思考:復(fù)雜性科學(xué)和計(jì)算模型(原書第2版)
- Effective Amazon Machine Learning
- 數(shù)據(jù)結(jié)構(gòu)與算法(C語言版)
- Dependency Injection with AngularJS
- OracleDBA實(shí)戰(zhàn)攻略:運(yùn)維管理、診斷優(yōu)化、高可用與最佳實(shí)踐
- 淘寶、天貓電商數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第2版)
- Expert Python Programming(Third Edition)
- 信息融合中估計(jì)算法的性能評估
- 大數(shù)據(jù)技術(shù)體系詳解:原理、架構(gòu)與實(shí)踐
- 數(shù)據(jù)挖掘算法實(shí)踐與案例詳解
- 推薦系統(tǒng)全鏈路設(shè)計(jì):原理解讀與業(yè)務(wù)實(shí)踐