Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make Erlang Development Environment Image by Docker

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "Docker how to create Erlang development environment image", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Docker how to create Erlang development environment image" this article.

1. Install docker toolbox 1) download the docker toolbox needed on OS on the official website. 2) after the download is complete, install docker toolbox just like the software on OS. After the installation is complete, you will find that a virtualbox is installed at this time. At the same time, docker-related commands such as docker-machine are also installed.

two。 Install a docker virtual machine using the docker-machine installed in the above steps to install a docker virtual machine, named default, with the command docker-machine run default. A virtual machine is created called default.

3. Connect to the virtual machine and give the command directly here: docker-machine ssh default. If you have multiple virtual machines installed on the host, you can use docker-machine ls to view them. At the same time, you can also use docker-machine env default to view virtual machine information.

4. After pulling the image through step 3, you have connected to the virtual machine. Therefore, you can pull the image of docker directly in it. I pulled the latest image of ubuntu here. The command is docker pull ubuntu. In view of the slow downloading of images in China, the domestic DaoCloud has made an image. Before using his image, you need to use the command to install one of his accelerators on the virtual machine. After installing the accelerator, the speed will be accelerated. The command is: curl-sSL https://get.daocloud.io/daomonit/install.sh | sh-s 95035d37ee96d6362c1b7da9ee53276739672b6b

For specific accelerator installation, please refer to daocloud's official reference manual. (https://dashboard.daocloud.io/mirror)

5. The command to start a container called install_erlnag is: docker run-it-- name install_erlang ubuntu / bin/bash

6. The specific steps to add erlang resources to the container are: 1) wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 2) dpkg-I erlang-solutions_1.0_all.deb 3) apt-get update 4) apt-get install erlang

Through the above steps, you have installed the erlang development environment.

7. Submit image 1) use docker ps-a to get the id of the docker container you launched above, and we assume that the id of docker container is defaultid. 2) use the following command in the container to create an image called dev/erlnag:v1. Docker commit-m = "erlang dev"-- author= "yangen" defaultid dev/erlang:v1

The great task has been completed.

The above is all the content of the article "how Docker makes Erlang Development Environment Image". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report