fabric:container-create-child
Name
fabric:container-create-child — create one or more child containers
Synopsis
fabric:container-create-child  [
					--help
				] [
					--ensemble-server
				] [
					--profile profileID
				] [
					--version version
				] [
					--jvm-opts jvmOpts
				] [
					--resolver policy
				] {
					parent
				} {
					name
				} [
					number
				]
Description
- Each child container has a parent, so that the child containers form a hierarchy, with the root container as the ultimate ancestor.
- The child starts in a new JVM instance (JVM options can be passed to the new JVM through the--jvm-optscommand option).
- A complete set of data directories are created for the child instance, under theESBInstallDir/instances/ChildNamedirectory. TheESBInstallDir/systemdirectory is shared with the root container.
fabric:create), you could add some child containers to the root container by entering the following command:
				karaf@root> fabric:container-create-child root child 3
karaf@root> fabric:container-create-child root child 3root container. To check that the containers have been successfully created, invoke the fabric:container-list command, as follows:
				child1, child2, and child3, with the default profile. This containers are ordinary (non-ensemble) containers, running fabric agents (ZooKeeper clients).
				default profile.
				--profile option multiple times. For example, if you want to deploy your own application profile, myApp, together with the esb profile, you would use a command like the following:
				fabric:container-create-child --profile esb --profile myApp root childMyApp
fabric:container-create-child --profile esb --profile myApp root childMyAppShutting down child containers
fabric:container-stop command. For example, if a root container has three children—child1, child2, and child3—you can issue the following commands in the root container console to shut down all of the containers:
				karaf@root> fabric:container-stop child1 karaf@root> fabric:container-stop child2 karaf@root> fabric:container-stop child3 karaf@root> shutdown -f
karaf@root> fabric:container-stop child1
karaf@root> fabric:container-stop child2
karaf@root> fabric:container-stop child3
karaf@root> shutdown -fArguments
| Argument | Interpretation | 
|---|---|
| --help | Displays the online help for this command | 
| --ensemble-server | Whether the new container should be a Fabric Server. | 
| --profile | A profile ID to associate with the new container. To associate multiple profiles with the container, specify this flag multiple times on the command line—for example, --profile foo --profile bar. If no profile is specified, the container is associated with thedefaultprofile. | 
| --version | Specifies the version of the new container (the version must be created in advance using fabric:version-create). Defaults to the current default version (useversion-listto find the current default). | 
| --jvm-opts | Specify options to pass to the container's JVM. | 
| --resolver | Specifies how the container will report its address to other containers. Valid values are localip,localhostname,publicip,publichostname,manualip. For more information see fabric:container-resolver-set. | 
| Parent | (Required) The parent container ID. | 
| Name | (Required) The name of the container to create. When creating multiple containers, it serves as a prefix | 
| Number | The number of containers that should be created. | 
Related topics
| fabric:container-resolver-list | 
| fabric:container-resolver-set | 
| fabric:create |