Docker“无效的参考格式:存储库名称必须为小写”

时间:2019-09-16 11:03:20

标签: docker

尝试运行docker命令时,我总是收到错误消息。

我一直遇到的错误是:import React from "react"; import { render } from "react-dom"; import { VictoryChart, VictoryBar, VictoryAxis, VictoryContainer, VictoryLabel } from "victory"; class App extends React.Component { render() { let month = new Array(12); month[0] = "January"; month[1] = "February"; month[2] = "March"; month[3] = "April"; month[4] = "May"; month[5] = "June"; month[6] = "July"; month[7] = "August"; month[8] = "September"; month[9] = "October"; month[10] = "November"; month[11] = "December"; return ( <div style={{ width: 600 }}> <VictoryChart domainPadding={30} width={900} containerComponent={<VictoryContainer responsive={false}/>}> <VictoryAxis dependentAxis={true} style={{ grid: { stroke: "grey" } }} /> <VictoryAxis tickFormat={(x) => ``} /> <VictoryBar barWidth={50} padding={{ left: 20, right: 60 }} style={{ data: { fill: "red" } }} data={[ { x: new Date("2019-01-01"), y: 2 }, { x: new Date("2019-02-01"), y: 3 }, { x: new Date("2019-03-01"), y: 5 }, { x: new Date("2019-04-01"), y: 4 }, { x: new Date("2019-05-01"), y: 8 }, { x: new Date("2019-06-01"), y: 2 }, { x: new Date("2019-07-01"), y: 3 }, { x: new Date("2019-08-01"), y: 5 }, { x: new Date("2019-09-01"), y: 9 }, { x: new Date("2019-10-01"), y: 3 }, { x: new Date("2019-11-01"), y: 5 }, { x: new Date("2019-12-01"), y: 6 } ]} labels={( datum ) => `${month[datum.x.getMonth()]}`} labelComponent={<VictoryLabel y={250} verticalAnchor={"start"}/>} /> </VictoryChart> </div> ); } } render(<App />, document.getElementById("root"));

我正在运行的命令是:

docker: invalid reference format: repository name must be lowercase.

谢谢

1 个答案:

答案 0 :(得分:1)

存储库名称根据AWS的文档有效。

如果任何ENV的值中有空格,可能会导致此问题的一件事。因此,请尝试将所有环境都用双引号"括起来。