.. _Creating WordPress Containers: Creating WordPress Containers ============================= This command relies on a pre-created CSV for the container (see :ref:`Managing Persistent Storage Volumes`). You can also create a persistent volume along with the container. To do this, replace the ``--filesystem`` parameter with ``--disk pool=,size=``, e.g., ``--disk pool=27a0ce77,size=3`` (the size is in gibibytes). The volume name will automatically match the container name. #. Create a Windows container based on the WordPress image: :: $ virt-install --connect docker://node1.winctpreview.com --name vpnclient_winct01wp --memory 1024 --boot init=* --os-variant none --console none --disk bus=virtio,path=virtuozzo/wordpress:techpreview --network type=network,mac=C4:37:72:75::,source=vSwitch1 --filesystem C:/ClusterStorage/CSV_vpnclient_winct01wp/,C:/Data/ --noreboot --noautoconsole Starting install... Domain creation completed. You can restart your domain by running: virsh --connect docker://node1.winctpreview.com start vpnclient_winct01wp This command creates the following container: - Location: ``node1.winctpreview.com`` - Name: ``vpnclient_winct01wp``. The name must be unique on the node. For ease of filtering, replace ``vpnclient`` here and everywhere else with your username. - MAC: ``C4:37:72:75::``. To avoid MAC conflicts, replace ```` and ```` with the number from your username and container index, respectively. For example, C4:37:72:75:01:01 if your username is ``vpnclient1`` this is the first container you create. - RAM: 1024MB - Network: DHCP from the virtual switch ``vSwitch1`` - Persistent storage: ``C:\\ClusterStorage\\CSV_vpnclient_winct01wp\\`` - Base image: ``virtuozzo/wordpress:techpreview`` #. Start the container: :: $ virsh --connect docker://node1.winctpreview.com start vpnclient_winct01wp Domain vpnclient_winct01wp started #. Find out the container IP address. For example: :: $ /usr/share/winrm-docker-deploy/run-win-cmd node1.winctpreview.com vpnclient_winct01wp cmd /c 'ipconfig | find "IPv4"' node1.winctpreview.com: cmd /c ipconfig | find "IPv4" IPv4 Address. . . . . . . . . . . : 10.37.130.181 If you get ``169.254.<...>``, the container is still waiting for an IP address from DHCP. Please run the command again in a minute. #. Open the WordPress installer page at \http:///wp-admin/install.php and continue WordPress installation. For ease of use, you can provide the following details to the WordPress installer: - Site title: ``WordPress-winct01wp`` - Username: ``adminwinct01wp`` - Email: ``adminwinct01wp@winctpreview.com`` - Select: ``Discourage search engines from indexing this site`` #. Log in to WordPress at \http:///wp-login.php. The dashboard will be at \http:///wp-admin/index.php.