Skip to content

Commit cc983bb

Browse files
author
Mrunal Patel
authored
Merge pull request #588 from anuthan/solaris
Mounts in Solaris
2 parents c9a95ed + 07b7958 commit cc983bb

File tree

2 files changed

+34
-11
lines changed

2 files changed

+34
-11
lines changed

config-solaris.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Solaris Application Container Configuration
22

3-
Solaris application containers can be configured using the following properties, all of the below properties have mappings to properties specified under zonecfg(1M) man page, except milestone.
3+
Solaris application containers can be configured using the following properties, all of the below properties have mappings to properties specified under zonecfg(8) man page, except milestone.
44

55
## milestone
66
The SMF(Service Management Facility) FMRI which should go to "online" state before we start the desired process within the container.
@@ -26,7 +26,7 @@ The property should consist of a comma-separated privilege set specification as
2626
## maxShmMemory
2727
The maximum amount of shared memory allowed for this application container.
2828
A scale (K, M, G, T) can be applied to the value for each of these numbers (for example, 1M is one megabyte).
29-
Mapped to max-shm-memory in zonecfg(1M) man page.
29+
Mapped to max-shm-memory in zonecfg(8) man page.
3030

3131
**`maxShmMemory`** *(string, OPTIONAL)*
3232

@@ -40,7 +40,7 @@ Sets a limit on the amount of CPU time that can be used by a container.
4040
The unit used translates to the percentage of a single CPU that can be used by all user threads in a container, expressed as a fraction (for example, .75) or a mixed number (whole number and fraction, for example, 1.25).
4141
An ncpu value of 1 means 100% of a CPU, a value of 1.25 means 125%, .75 mean 75%, and so forth.
4242
When projects within a capped container have their own caps, the minimum value takes precedence.
43-
cappedCPU is mapped to capped-cpu in zonecfg(1M) man page.
43+
cappedCPU is mapped to capped-cpu in zonecfg(8) man page.
4444

4545
* **`ncpus`** *(string, OPTIONAL)*
4646

@@ -54,7 +54,7 @@ cappedCPU is mapped to capped-cpu in zonecfg(1M) man page.
5454
## cappedMemory
5555
The physical and swap caps on the memory that can be used by this application container.
5656
A scale (K, M, G, T) can be applied to the value for each of these numbers (for example, 1M is one megabyte).
57-
cappedMemory is mapped to capped-memory in zonecfg(1M) man page.
57+
cappedMemory is mapped to capped-memory in zonecfg(8) man page.
5858

5959
* **`physical`** *(string, OPTIONAL)*
6060
* **`swap`** *(string, OPTIONAL)*
@@ -78,26 +78,26 @@ For more information on the daemon check the zoneadmd(1M) man page.
7878
When such a container is started, a temporary VNIC(Virtual NIC) is automatically created for the container.
7979
The VNIC is deleted when the container is torn down.
8080
The following properties can be used to setup automatic networks.
81-
For additional information on properties check zonecfg(1M) man page for the respective release of Solaris.
81+
For additional information on properties check zonecfg(8) man page for the respective release of Solaris.
8282

8383
* **`linkname`** *(string, OPTIONAL)* Specify a name for the automatically created VNIC datalink.
8484
* **`lowerLink`** *(string, OPTIONAL)* Specify the link over which the VNIC will be created.
85-
Mapped to lower-link in the zonecfg(1M) man page.
85+
Mapped to lower-link in the zonecfg(8) man page.
8686
* **`allowedAddress`** *(string, OPTIONAL)* The set of IP addresses that the container can use might be constrained by specifying the allowedAddress property.
8787
If allowedAddress has not been specified, then they can use any IP address on the associated physical interface for the network resource.
8888
Otherwise, when allowedAddress is specified, the container cannot use IP addresses that are not in the allowedAddress list for the physical address.
89-
Mapped to allowed-address in the zonecfg(1M) man page.
89+
Mapped to allowed-address in the zonecfg(8) man page.
9090
* **`configureAllowedAddress`** *(string, OPTIONAL)* If configureAllowedAddress is set to true, the addresses specified by allowedAddress are automatically configured on the interface each time the container starts.
9191
When it is set to false, the allowedAddress will not be configured on container start.
92-
Mapped to configure-allowed-address in the zonecfg(1M) man page.
92+
Mapped to configure-allowed-address in the zonecfg(8) man page.
9393
* **`defrouter`** *(string, OPTIONAL)* The value for the OPTIONAL default router.
9494
* **`macAddress`** *(string, OPTIONAL)* Set the VNIC's MAC addresses based on the specified value or keyword.
9595
If not a keyword, it is interpreted as a unicast MAC address.
96-
For a list of the supported keywords please refer to the zonecfg(1M) man page of the respective Solaris release.
97-
Mapped to mac-address in the zonecfg(1M) man page.
96+
For a list of the supported keywords please refer to the zonecfg(8) man page of the respective Solaris release.
97+
Mapped to mac-address in the zonecfg(8) man page.
9898
* **`linkProtection`** *(string, OPTIONAL)* Enables one or more types of link protection using comma-separated values.
9999
See the protection property in dladm(8) for supported values in respective release of Solaris.
100-
Mapped to link-protection in the zonecfg(1M) man page.
100+
Mapped to link-protection in the zonecfg(8) man page.
101101

102102
#### Example
103103
```json

config.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,22 @@ For example, if a configuration is compliant with version 1.1 of this specificat
4444
**`mounts`** (array, OPTIONAL) configures additional mounts (on top of [`root`](#root-configuration)).
4545
The runtime MUST mount entries in the listed order.
4646
The parameters are similar to the ones in [the Linux mount system call](http://man7.org/linux/man-pages/man2/mount.2.html).
47+
For Solaris, the mounts corresponds to fs resource in zonecfg(8).
4748

4849
* **`destination`** (string, REQUIRED) Destination of mount point: path inside container.
4950
This value MUST be an absolute path.
5051
For the Windows operating system, one mount destination MUST NOT be nested within another mount (e.g., c:\\foo and c:\\foo\\bar).
52+
For the Solaris operating system, this corresponds to "dir" of the fs resource in zonecfg(8).
5153
* **`type`** (string, REQUIRED) The filesystem type of the filesystem to be mounted.
5254
Linux: *filesystemtype* argument supported by the kernel are listed in */proc/filesystems* (e.g., "minix", "ext2", "ext3", "jfs", "xfs", "reiserfs", "msdos", "proc", "nfs", "iso9660").
5355
Windows: ntfs.
56+
Solaris: corresponds to "type" of the fs resource in zonecfg(8).
5457
* **`source`** (string, REQUIRED) A device name, but can also be a directory name or a dummy.
5558
Windows: the volume name that is the target of the mount point, \\?\Volume\{GUID}\ (on Windows source is called target).
59+
Solaris: corresponds to "special" of the fs resource in zonecfg(8).
5660
* **`options`** (list of strings, OPTIONAL) Mount options of the filesystem to be used.
5761
Linux: [supported][mount.8-filesystem-independent] [options][mount.8-filesystem-specific] are listed in [mount(8)][mount.8].
62+
Solaris: corresponds to "options" of the fs resource in zonecfg(8).
5863

5964
### Example (Linux)
6065

@@ -90,6 +95,24 @@ The parameters are similar to the ones in [the Linux mount system call](http://m
9095

9196
See links for details about [mountvol](http://ss64.com/nt/mountvol.html) and [SetVolumeMountPoint](https://msdn.microsoft.com/en-us/library/windows/desktop/aa365561(v=vs.85).aspx) in Windows.
9297

98+
### Example (Solaris)
99+
100+
```json
101+
"mounts": [
102+
{
103+
"destination": "/opt/local",
104+
"type": "lofs",
105+
"source": "/usr/local",
106+
"options": ["ro","nodevices"]
107+
},
108+
{
109+
"destination": "/opt/sfw",
110+
"type": "lofs",
111+
"source": "/opt/sfw"
112+
}
113+
]
114+
```
115+
93116

94117
## Process configuration
95118

0 commit comments

Comments
 (0)