<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create a custom Docker cluster layout? in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-create-a-custom-docker-cluster-layout/m-p/7250736#M3910</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Method 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Method 1 shows how to create docker cluster layout for VMware cloud with Ubuntu 22.04 running the latest version of docker.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Node Type&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new node type by navigating to Library &amp;gt; Blueprints &amp;gt; Node Types &amp;gt; +Add&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149569iD03194AB55E749F8/image-size/large?v=v2&amp;amp;px=2000" role="button" title="ddd42e1cc57fe0e152e97679c17f0233314ad617.png" alt="ddd42e1cc57fe0e152e97679c17f0233314ad617.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Configure the required fields as shown below&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149777i02654B5DCBF1D528/image-size/large?v=v2&amp;amp;px=2000" role="button" title="1429ee2bdb418748120e2e8f3cacdaf5d6e91d7d.png" alt="1429ee2bdb418748120e2e8f3cacdaf5d6e91d7d.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Cluster Layout&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Create a new Docker cluster layout by navigating to Library &amp;gt; Blueprints &amp;gt; Cluster Layouts &amp;gt; +Add&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149649i2EA1F4B259BE9865/image-size/large?v=v2&amp;amp;px=2000" role="button" title="3a60be7247fa99b5c0946e88091daa66d991247c.png" alt="3a60be7247fa99b5c0946e88091daa66d991247c.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Fill in the required fields as shown below. Make sure ‘Install Docker’ is checked, and attach the node from step 2 as the worker node.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150610i6B7AC56D88F3714E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a4218ddf3786461a1c80fa09266040b35ac72b20.png" alt="a4218ddf3786461a1c80fa09266040b35ac72b20.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Note : By selecting ‘Install Docker’ on the layout doesn’t guarantee that Morpheus will be able to install docker on any type of node as this depends on the image template. When using the auto install method, Morpheus will run a standard script to install docker. Morpheus can’t guarantee it will work on custom templates. The install script may work for some templates, and not work for others. If the auto install method doesn’t work, then the other option is to use a provisioning task attached to the layout that will install docker during cluster provision. Please see Method 2.&lt;/P&gt;
&lt;P&gt;The newly created layout will now be available for use when provisioning a Docker cluster. Morpheus will install the latest version of docker on the nodes during provisioning.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150580iCCFF203B712DA66D/image-size/large?v=v2&amp;amp;px=2000" role="button" title="4a20e4d7ded8aa90e957c06a5cf051be4f9c9230.png" alt="4a20e4d7ded8aa90e957c06a5cf051be4f9c9230.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Method 2&lt;/P&gt;
&lt;P&gt;Method 2 shows how to create docker cluster layout for VMware cloud with Ubuntu 22.04 running a specific version of docker.&lt;/P&gt;
&lt;P&gt;Create a Docker installation task&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Navigate to Library &amp;gt; Automation &amp;gt; Tasks &amp;gt; +Add.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150178i34EE435E6297B318/image-size/large?v=v2&amp;amp;px=2000" role="button" title="67d9cefc8f9d766cdd5192c5f63ce5a11174ebde.png" alt="67d9cefc8f9d766cdd5192c5f63ce5a11174ebde.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Create a shell script task that will be executed on the docker node to install specific version of docker. Fill in the required fields as shown below.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149843i8273366B5E9C83BD/image-size/large?v=v2&amp;amp;px=2000" role="button" title="3c4e5c2fb758ed1ba844eeaf93945f1b74cf7834.png" alt="3c4e5c2fb758ed1ba844eeaf93945f1b74cf7834.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;On my example I’m using the following shell script to install docker version ‘20.10.17~3-0~ubuntu-jammy’.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;#Install Docker Version 20.10.17 on Ubuntu 22.04
yes Y | sudo apt-get update
yes Y | sudo apt-get install ca-certificates
yes Y | sudo apt-get install curl
yes Y | sudo apt-get install gnupg
yes Y | sudo apt-get install lsb-release

sudo mkdir -p /etc/apt/keyrings
curl -fsSL &lt;A href="https://download.docker.com/linux/ubuntu/gpg" target="_blank"&gt;https://download.docker.com/linux/ubuntu/gpg&lt;/A&gt; | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] &lt;A href="https://download.docker.com/linux/ubuntu" target="_blank"&gt;https://download.docker.com/linux/ubuntu&lt;/A&gt; $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list &amp;gt; /dev/null

yes Y | sudo apt-get update

#List the available versions:
#apt-cache madison docker-ce | awk '{ print $3 }'

VERSION_STRING=5:20.10.17~3-0~ubuntu-jammy
yes Y | sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-compose-plugin

echo $(docker --version)

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Create a post provisioning workflow&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to Library &amp;gt; Automation &amp;gt; Workflows &amp;gt; +Add &amp;gt; Provisioning Workflow.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Configure the workflow as shown below and attach the task from step 2.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="8"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149795i0416A7BC73DF8201/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a0d8f47b176217d72a5c2f59f7aadadb8c3ea68f.png" alt="a0d8f47b176217d72a5c2f59f7aadadb8c3ea68f.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="5"&gt;
&lt;LI&gt;
&lt;P&gt;Follow the steps 1 - 3 from Method 1 to create the node and the layout.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;When creating the cluster layout, uncheck the ‘Install Docker’ checkbox, and select the provisioning workflow we created on step 4.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149656iC89A5E87B9C3786A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="b96ba2b19abb921575c483866a73750980098be7.png" alt="b96ba2b19abb921575c483866a73750980098be7.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When provisioning with this layout Morpheus will install the docker version specified in the shell task on all of the cluster nodes.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 17:02:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2022-11-30T17:02:26Z</dc:date>
    <item>
      <title>How to create a custom Docker cluster layout?</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-create-a-custom-docker-cluster-layout/m-p/7250736#M3910</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Method 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Method 1 shows how to create docker cluster layout for VMware cloud with Ubuntu 22.04 running the latest version of docker.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Node Type&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new node type by navigating to Library &amp;gt; Blueprints &amp;gt; Node Types &amp;gt; +Add&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149569iD03194AB55E749F8/image-size/large?v=v2&amp;amp;px=2000" role="button" title="ddd42e1cc57fe0e152e97679c17f0233314ad617.png" alt="ddd42e1cc57fe0e152e97679c17f0233314ad617.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Configure the required fields as shown below&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149777i02654B5DCBF1D528/image-size/large?v=v2&amp;amp;px=2000" role="button" title="1429ee2bdb418748120e2e8f3cacdaf5d6e91d7d.png" alt="1429ee2bdb418748120e2e8f3cacdaf5d6e91d7d.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Cluster Layout&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;Create a new Docker cluster layout by navigating to Library &amp;gt; Blueprints &amp;gt; Cluster Layouts &amp;gt; +Add&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149649i2EA1F4B259BE9865/image-size/large?v=v2&amp;amp;px=2000" role="button" title="3a60be7247fa99b5c0946e88091daa66d991247c.png" alt="3a60be7247fa99b5c0946e88091daa66d991247c.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;Fill in the required fields as shown below. Make sure ‘Install Docker’ is checked, and attach the node from step 2 as the worker node.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150610i6B7AC56D88F3714E/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a4218ddf3786461a1c80fa09266040b35ac72b20.png" alt="a4218ddf3786461a1c80fa09266040b35ac72b20.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Note : By selecting ‘Install Docker’ on the layout doesn’t guarantee that Morpheus will be able to install docker on any type of node as this depends on the image template. When using the auto install method, Morpheus will run a standard script to install docker. Morpheus can’t guarantee it will work on custom templates. The install script may work for some templates, and not work for others. If the auto install method doesn’t work, then the other option is to use a provisioning task attached to the layout that will install docker during cluster provision. Please see Method 2.&lt;/P&gt;
&lt;P&gt;The newly created layout will now be available for use when provisioning a Docker cluster. Morpheus will install the latest version of docker on the nodes during provisioning.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150580iCCFF203B712DA66D/image-size/large?v=v2&amp;amp;px=2000" role="button" title="4a20e4d7ded8aa90e957c06a5cf051be4f9c9230.png" alt="4a20e4d7ded8aa90e957c06a5cf051be4f9c9230.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Method 2&lt;/P&gt;
&lt;P&gt;Method 2 shows how to create docker cluster layout for VMware cloud with Ubuntu 22.04 running a specific version of docker.&lt;/P&gt;
&lt;P&gt;Create a Docker installation task&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Navigate to Library &amp;gt; Automation &amp;gt; Tasks &amp;gt; +Add.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="6"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150178i34EE435E6297B318/image-size/large?v=v2&amp;amp;px=2000" role="button" title="67d9cefc8f9d766cdd5192c5f63ce5a11174ebde.png" alt="67d9cefc8f9d766cdd5192c5f63ce5a11174ebde.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Create a shell script task that will be executed on the docker node to install specific version of docker. Fill in the required fields as shown below.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149843i8273366B5E9C83BD/image-size/large?v=v2&amp;amp;px=2000" role="button" title="3c4e5c2fb758ed1ba844eeaf93945f1b74cf7834.png" alt="3c4e5c2fb758ed1ba844eeaf93945f1b74cf7834.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;On my example I’m using the following shell script to install docker version ‘20.10.17~3-0~ubuntu-jammy’.&lt;/P&gt;
&lt;PRE style="background : #f0f1f2;"&gt;&lt;CODE class="lang-auto"&gt;#Install Docker Version 20.10.17 on Ubuntu 22.04
yes Y | sudo apt-get update
yes Y | sudo apt-get install ca-certificates
yes Y | sudo apt-get install curl
yes Y | sudo apt-get install gnupg
yes Y | sudo apt-get install lsb-release

sudo mkdir -p /etc/apt/keyrings
curl -fsSL &lt;A href="https://download.docker.com/linux/ubuntu/gpg" target="_blank"&gt;https://download.docker.com/linux/ubuntu/gpg&lt;/A&gt; | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] &lt;A href="https://download.docker.com/linux/ubuntu" target="_blank"&gt;https://download.docker.com/linux/ubuntu&lt;/A&gt; $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list &amp;gt; /dev/null

yes Y | sudo apt-get update

#List the available versions:
#apt-cache madison docker-ce | awk '{ print $3 }'

VERSION_STRING=5:20.10.17~3-0~ubuntu-jammy
yes Y | sudo apt-get install docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io docker-compose-plugin

echo $(docker --version)

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Create a post provisioning workflow&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI&gt;
&lt;P&gt;Navigate to Library &amp;gt; Automation &amp;gt; Workflows &amp;gt; +Add &amp;gt; Provisioning Workflow.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Configure the workflow as shown below and attach the task from step 2.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="8"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149795i0416A7BC73DF8201/image-size/large?v=v2&amp;amp;px=2000" role="button" title="a0d8f47b176217d72a5c2f59f7aadadb8c3ea68f.png" alt="a0d8f47b176217d72a5c2f59f7aadadb8c3ea68f.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;OL start="5"&gt;
&lt;LI&gt;
&lt;P&gt;Follow the steps 1 - 3 from Method 1 to create the node and the layout.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;When creating the cluster layout, uncheck the ‘Install Docker’ checkbox, and select the provisioning workflow we created on step 4.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149656iC89A5E87B9C3786A/image-size/large?v=v2&amp;amp;px=2000" role="button" title="b96ba2b19abb921575c483866a73750980098be7.png" alt="b96ba2b19abb921575c483866a73750980098be7.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When provisioning with this layout Morpheus will install the docker version specified in the shell task on all of the cluster nodes.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 17:02:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/how-to-create-a-custom-docker-cluster-layout/m-p/7250736#M3910</guid>
      <dc:creator />
      <dc:date>2022-11-30T17:02:26Z</dc:date>
    </item>
  </channel>
</rss>

