Xwiki(Docker容器)安装已取消

时间:2017-08-27 15:54:25

标签: docker xwiki

所以我想测试Xwiki和我认为最简单的Docker容器方式。我之前从未使用过Docker或Wiki,所以我的知识非常基础。我现在有一个Xwiki和一个运行的mysql容器。但是当我尝试进入管理员帐户时,xwiki安装被取消了。如何在不重置所有内容的情况下返回此安装过程?

感谢。

1 个答案:

答案 0 :(得分:0)

当您说“当我尝试输入管理员帐户时取消xwiki安装”时,您会更精确吗?另外,您应该查看https://hub.docker.com/_/xwiki/上的xwiki docker文档,其中有关于如何使用docker的 /** * Add store location select dropdown in checkout page **/ add_filter( 'woocommerce_checkout_fields' , 'custom_store_pickup_field'); function custom_store_pickup_field( $fields ) { $fields['billing']['store_pickup'] = array( 'type' => 'select', 'options' => array( 'option_0'=> 'Please Select a Delivery Option', 'option_1' => 'Delivery', 'option_2' => 'Gym1', 'option_3' => 'Gym2' ), 'label' => __('Delivery or Store Pickup', 'woocommerce'), 'required' => true, 'class' => array('store-pickup form-row-wide'), 'id' => 'store_pickup_val', 'clear' => true ); return $fields; } //* Process the checkout add_action('woocommerce_checkout_process', 'wps_select_checkout_field_process'); function wps_select_checkout_field_process() { global $woocommerce; // Check if set, if its not set add an error. if ($_POST['store_pickup'] == "option_0") wc_add_notice( '<strong>Please select a day part under Delivery options</strong>', 'error' ); } add_action( 'woocommerce_after_checkout_form', 'gym_opening_hours', 6); function gym_opening_hours() { ?> <script type="text/javascript"> jQuery('#store_pickup_val').change(function(){ jQuery('body').trigger('update_checkout'); jQuery( ".gym-collection" ).remove(); if (this.value == 'option_1') { jQuery('#shipping_method_0_flat_rate1').prop('checked', true); } if (this.value == 'option_2') { jQuery( "<p>Order can be collected between 4pm - 7pm on Tuesdays</p>" ).addClass("gym-collection").insertAfter( "#store_pickup_val" ); jQuery('#shipping_method_0_local_pickup3').prop('checked', true); } if (this.value == 'option_3') { jQuery( "<p>Order can be collected between 4pm - 7pm on Tuesdays</p>" ).addClass("gym-collection").insertAfter( "#store_pickup_val" ); jQuery('#shipping_method_0_local_pickup3').prop('checked', true); } else { } }); </script> <?php } # add this in your plugin file and that's it, the calculate_shipping method of your shipping plugin class will be called again function action_woocommerce_checkout_update_order_review($array, $int) { WC()->cart->calculate_shipping(); return; } add_action('woocommerce_checkout_update_order_review', 'action_woocommerce_checkout_update_order_review', 10, 2); ?> <?php 参数将图像中的目录映射到本地目录的说明。这允许重新运行或重新创建容器而不会丢失xwiki数据。

最后,您还可以在https://forum.xwiki.org/的xwiki论坛网站上寻求帮助。