我认为该命令将$ docker命令重定向到docker机器.现在我所有的docker命令都给我一个错误FATA[0000] Couldn't read ca cert...,这个错误是我创建的docker-machine的路径.我该如何修理我的shell?
ERROR: yaml.parser.ParserError: while parsing a block mapping in "./docker-compose.yml", line 1, column 1
expected <block end>, but found '<block mapping start>' in "./docker-compose.yml", line 2, column 3
Run Code Online (Sandbox Code Playgroud)
我的yml文件中似乎存在缩进问题.我在这里阅读了其他一些问题,并尝试了各种缩进方案.我仍然无法让它发挥作用.在发布此问题之前,我故意删除了env名称/ pws.
version: '2'
ghost:
image: ghost:latest
container_name: ghost-blog #Specify a custom container name, rather than a generated default name.
environment:
- NODE_ENV=production
- MYSQL_DATABASE=db-name # Change {{db-name}}
- MYSQL_USER=user # Change {{username}}
- MYSQL_PASSWORD=pass # Change {{db-password}}
# - "MAILGUN_USER={{mailgun-user}}" # Change {{mailgun-user}}
# - "MAILGUN_PASSWORD={{mailgun-password}}" # Change {{mailgun-password}}
volumes:
- ./ghost:/var/lib/ghost …Run Code Online (Sandbox Code Playgroud) sudo php -d detect_unicode=0 go-pear.phar
Run Code Online (Sandbox Code Playgroud)
无法创建 PHP 代码目录 ($php_dir) /usr/share/pear。
我需要更改 /usr/share 的权限吗?当前权限是 drwxr-xr-x
今晚我正在研究问题1来自http://projecteuler.net/problem=1.它不能使用while循环.我确实使用两个short cut if语句来使用它.在正确解决之后,我在论坛上看到有更好的解决方案使用数学,但我是新的,需要了解我的while循环出了什么问题.
这是一个问题:如果我们列出10以下的所有自然数是3或5的倍数,我们得到3,5,6和9.这些倍数的总和是23.求所有3的倍数之和或5以下1000.正确答案= 233168
public class Project1_Multiples_of_3_and_5 {
//Main method
public static void main (String args[])
{
int iResult = 0;
for (int i = 1; i <= 1000 / 3; i++) // for all values of i less than 333 (1000 / 3)
{
iResult += i * 3; // add i*3 to iResults
//the short cut if below works but I want to use a while loop
//iResult += (i % 3 !=0 && i …Run Code Online (Sandbox Code Playgroud)