![]() In that subdirectory, we create a docker compose file in the “.yml” format.įirst, we use the cd command with the Desktop keyword to get to the desktop directory. On our command terminal, we write the following commands to create a subdirectory on our desktop. The file is created in a subdirectory on our desktop and is accessed through our Ubuntu terminal. The YAML file is created as a compose file for a docker image file. In this example, we will create a YAML file in which an array with multiple lines is defined. ![]() Example 1: Simple Array in Multiple Lines in a YAML File in Ubuntu 20.04 Another frequent style is a single-line format in which all the items appear on a single line separated by commas and surrounded by a bracket. Each element is defined on a single line in the standard style, and each line begins with the “-” character. In YAML, an array may be defined in two ways. Since it is widely used when assembling or in need of support variable information, YAML allows the user to record the variables with many values in the array data type. This article will go through how to utilize the arrays in a YAML file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |