使用Docker容器安装Odoo

阅读(239) 最后更新: 2019年2月14日 14:19

上一页 在Windows上安装Odoo | 其他安装选项 下一页

翻译进度 100%

自助翻译

如果您在运行集装箱时遇到麻烦,下面是重新开始的方法:$docker容器停止db$docker容器rmdb$docker容器停止Odoo$docker容器rm odoo码头技术有更大的潜力,更多地了解它可能会很有趣。Docker网站有很好的学习文档。https://www.docker.com/get-started.是一个很好的起点
In case you get in trouble running the containers, here is a recipe to start over: $ docker container stop db $ docker container rm db $ docker container stop odoo $ docker container rm odoo The Docker technology has more potential, and it might be interesting to learn more about it.The Docker website has good learning documentation.A good place to get started is https://www.docker.com/get-started.
Docker提供了一种方便的多平台解决方案来运行应用程序。它可以用于在MacOS、Linux和Windows上运行应用程序。与传统的虚拟机相比,容器技术使用简单,节省资源。
Docker provides a convenient multi-platform solution to run applications.It can be used to run applications on macOS, Linux, and Windows.The container technology is simple to use and resource-efficient when compared to classic virtual machines.
您必须先在您的系统中安装Docker。DockerCE是免费的,可以从https://www.docker.com.It‘s下载,有关最新的安装细节,请参考Docker的网站。
You must first have Docker installed in your system.The Docker CE is free of charge, and can be downloaded from https://www.docker.com.It's worth referring to Docker's website for the latest installation details.
尤其要记住,必须在您的BIOS设置中启用虚拟化。同样,用于Windows的Docker CE需要Hyper-V,仅在Windows 10企业版或教育版本(请参阅https:/docs.docker.com/docker-for-windows/install)中可用,而Docker CE用于Mac则需要OS X El Capitan 10.11和更新的MacOS版本。
In particular, keep in mind that virtualization must be enabled in your BIOS setup.Also, the Docker CE for Windows requires Hyper-V, only available in Windows 10 Enterprise or Education releases (see https://docs.docker.com/docker-for-windows/install), and Docker CE for mac requires OS X El Capitan 10.11 and newer macOS releases.
对于其他Windows和MacOS版本,您应该安装Docker工具箱,可在https:/docs.docker.com/toolbox/overview.Docker工具箱捆绑VirtualBox,并提供预配置的外壳,作为操作Docker容器的命令行环境。
For other Windows and macOS versions, you should instead install Docker Toolbox, available at https://docs.docker.com/toolbox/overview.Docker Toolbox bundles VirtualBox and provides a preconfigured shell that should be used as the command-line environment to operate Docker containers.
OdooDocker映像可以在https://store.docker.com/映像/odo的Docker商店中获得。在这里,我们可以找到可用的版本,以及开始使用它们的基本说明。要运行Odoo,我们需要两个Docker容器,一个用于PostgreSQL数据库,另一个用于Odoo服务器。
The Odoo Docker images are available in the Docker store at https://store.docker.com/ images/odoo.There, we can find the versions available, and the basic instructions to get started with them.To run Odoo, we will need two Docker containers, one for the PostgreSQL database, and another for the Odoo server.
安装和操作是从一个命令行窗口完成的。要安装PostgreSQL Docker容器,请运行以下命令:$dockerrund-e-Postgres_user=Odoo-e-Postgres_Password=Odoo-name db Postgres:10它将从Internet下载最新的PostgreSQL映像,并为其启动一个容器作为后台作业。
The installation and operation is done from a command-line window.To install the PostgreSQL Docker container, run this: $ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres:10 It will download the latest PostgreSQL image from the internet, and start a container for it running as a background job.
接下来,安装并运行Odoo服务器容器,将其链接到我们刚刚启动的PostgreSQL容器,并在端口8069上公开它:$docker run-t-p 8069:8069-name Odoo-link db:DB Odoo:12.0-d odoo 12,您将在终端窗口中看到活动的Odoo服务器日志,并且可以通过使用您最喜欢的Web浏览器打开http://localhost:8069来访问Odoo实例。
Next, install and run the Odoo server container, linking it to the PostgreSQL container we just started, and exposing it on port 8069: $ docker run -t -p 8069:8069 --name odoo --link db:db odoo:12.0 -d odoo12 With this, you will see the live Odoo server log in your terminal window, and can access the Odoo instance by opening http://localhost:8069 with your favorite web browser.
如果端口8069已经在使用,则Odoo服务器可能无法启动,例如,通过已经在运行的Odoo服务器。在本例中,您可能会查找并停止正在运行的服务(例如,查看正在运行的服务列表),或者尝试通过更改-p选项在另一个端口启动此Odoo服务器。要使用端口8070,请使用-p 8070:8069。在这种情况下,您可能也希望更改-d以设置实例应该使用的数据库名称。
The Odoo server can fail to start if port 8069 is already in use, for example, by an already running Odoo server.In this case, you might look for and stop the running service (for example, by looking at the list of running services), or try to start this Odoo server on a different port by changing the -p option.For example, to use port 8070, use -p 8070:8069.In that case, you probably also want to change -d to set the database name that instance should use.
要帮助管理这些Docker容器,您应该知道以下几个基本命令:Docker停止容器停靠启动-a启动容器并附加输出,如服务器日志,附加到终端窗口,将容器的输出重新附加到当前的终端窗口,ps列出了当前的Docker容器,这些是操作我们的Docker容器所需的基本命令。
There are a few basic commands you should know to help manage these Docker containers: docker stop stops a container docker start starts a container docker start -a starts a container, and attaches the output, such as the server log, to the terminal window docker attach reattaches a container's output to the current terminal window docker ps lists the current Docker containers These are the basic commands needed to operate our Docker containers.
#安装-使用Odoo-码头-容器
###installing-odoo-using-docker-containers

odoo技术交流2 群号 625337975

http://www.odoogo.com/post/58/Odoo开发视频教程

文档不断更新中,添加微信odoogo,获取最新视频课程和模块

留言提问