Creating an Application with a Container Image
There are different ways to deploy an application on the Arvancloud Cloud Container, and you can choose one based on your needs. If you prefer working with Docker, the Container Image method helps you build your applications using Docker images or container images in public or private repositories.
Log in to the Arvancloud panel and go to Create Application in the Cloud Container menu. Then select Container Image from the application creation methods.
Choosing the Image
To choose your application's image, click Docker Image. In this section, you can use official images on Docker Hub, or public or private images from other repositories.
-
Official Docker Hub images
You can easily find and install the image you want by searching for its name.
After you select the image, its name and the
latesttag are selected automatically.It is recommended that you don't use the
latesttag to install the application, and instead enter the version you want when selecting the image. -
Public images
If you want to use an image in a public registry, simply enter the image's access address in Name and its version in Tag.
-
Private images
If the image you want is in a private registry, besides the image's access address and tag, you also need to enter the username and password for accessing the registry. To do this, simply enable Private Image.
Finally, click Start to begin creating the application.
Application Creation Process
After choosing the image, you enter the application creation process. In these steps, you can easily set the app's details and configuration based on your needs.
Basic Information
First, choose the data center and infrastructure hosting your application. Currently, two regions, Bamdad and Shahriar, are available on Kubernetes. Then select one of your existing projects to deploy this application in, or create a new project.
On this page, you also need to choose a unique name for your application and a port for the container. This port is used to connect the application to a domain and is in fact the container's exposed port.
For example, consider the following command:
docker run -p 80:5000 my-web-app
In this example, the host's port 80 is mapped to the container's port 5000; that is, requests coming to the application's port 80 are sent to the container's port 5000. To implement this example setting in the Arvancloud panel, enter 5000 in the container port field.
In the next sections, you can specify more details such as network, disk, and environment variables. However, in each section you can click Continue to proceed with the default settings and go to the final step.