卷号

时间:2017-10-02 13:10:47

标签: docker

我已经获得了一个通过bash脚本运行的docker容器。容器应该设置一个php web应用程序,然后继续调用其他脚本和容器。它似乎对其他人很好,但对我来说却是一个错误。

这是代码

sudo docker run -d \
   --name eluci \
   -v ./config/eluci.settings:/mnt/eluci.settings \
   -v ./config/elucid.log4j.settings.xml:/mnt/eluci.log4j.settings.xml \
   --link eluci-database:eluci-database \
   /opt/eluci/run_eluci.sh

这是错误

docker: Error response from daemon: create ./config/eluci.settings: 
"./config/eluci.settings" includes invalid characters for a local
volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to 
pass a host directory, use absolute path.

我在Windows 7主机上使用virtualbox在centos VM上运行docker。

从谷歌搜索它似乎与挂载有关,但我不想改变它,以防它破坏或依赖于另一个泊坞容器的设置。我还有一些bash脚本要运行,它们应该编排其余的构建过程。作为Docker的完整新手,这让我感到难过。

1 个答案:

答案 0 :(得分:9)

命令$datos = AdminFijacionAnteriore::select([ 'id_fijacion AS id', 'admin_distribuidoras.nombre as nombre_distribuidora', 'admin_licitaciones.nombre as nombre_licitacion', 'admin_generadoras.nombre as nombre_generadora', 'admin_bloques.nombre as nombre_bloques', 'periodo', 'energia', 'potencia', 'MONTH(admin_fijacion_anteriores.periodo) AS mes', 'YEAR(admin_fijacion_anteriores.periodo) AS anio']) ->join('admin_distribuidoras', 'admin_fijacion_anteriores.distribuidora_id', '=', 'admin_distribuidoras.id_distribuidora') ->join('admin_licitaciones', 'admin_fijacion_anteriores.licitacion_id', '=', 'admin_licitaciones.id_licitacion') ->join('admin_generadoras', 'admin_fijacion_anteriores.generadora_id', '=', 'admin_generadoras.id_generadora') ->join('admin_bloques', 'admin_fijacion_anteriores.bloque_id', '=', 'admin_bloques.id_bloque') ->get(); 不接受相对路径,您应该提供绝对路径。该命令可以重写为:

<div class="form-group">
            @Html.LabelFor(model => model.SelectedIncident, htmlAttributes: new { @class = "control-label col-md-3" })
            <div class="col-md-9">
                @Html.DropDownListFor(model => model.SelectedIncident, new SelectList(string.Empty, "Value", "Text"), new { data_toggle = "popover", @class = "form-control", @id = "IncidentId" })
                @Html.ValidationMessageFor(model => model.SelectedIncident, "", new { @class = "text-danger" })
            </div>
        </div>

        <div class="form-group hidden" id="divOtherIncident">
            @Html.LabelFor(model => model.OtherIncident, htmlAttributes: new { @class = "control-label col-md-3" })
            <div class="col-md-9">
                @Html.EditorFor(model => model.OtherIncident, new { htmlAttributes = new { @class = "form-control", @id = "tbOtherIncident"} })             
            </div>
        </div>

        $("#IncidentId").change(function () {
                var ddlOIValue = $("#IncidentId option:selected").text();
                alert(ddlOIValue); //This displays the text 'Other' but it never goes into if condition below
                if (ddlOIValue == "Other") {    
                    $('#divOtherIncident').show();  

                }
                else {  
                        $('#divOtherIncident').hide();      
                        $("#tbOtherIncident").val("");  
                        $.ajax({
                        type: 'GET',
                        url: '@Url.Action("GetActionDetails")',
                        dataType: 'html',
                        data: { id: $("#IncidentId").val() },
                        success: function (data) {                          
                            $('[data-toggle="popover"]').popover({
                                html: true,
                                content: data
                            });
                        },
                        error: function (ex) {
                            alert('Failed to retrieve action details' + ex);
                        }
                    });
                    return false;                       
                }
            });