命令“ docker-compose up”导致“找不到命令:未指定安装点”错误

时间:2020-08-17 15:18:48

标签: docker docker-compose dockerfile docker-image

我正在尝试修改我在网上找到的Expressvpn容器。我克隆了存储库以从中创建自己的修改图像。我整天都在尝试尝试在不修改现有代码的情况下创建新图像。

我要做的就是将docker-compose.yml文件添加到Github页面上指定的目录中:

---
version: "2.1"
services:
    expressvpn_test:
        build: 
            context: .
            dockerfile: Dockerfile
        container_name: expressvpn_test
        environment:
          - ACTIVATION_CODE={% your-activation-code %}
        cap_add:
          - NET_ADMIN
        devices: 
          - /dev/net/tun
        stdin_open: true
        tty: true
        command: /bin/bash
        privileged: true
        restart: unless-stopped
        ports:
            - 80:80 # example

在存储库目录中运行命令“ docker-compose up”时,出现以下错误:

/tmp/entrypoint.sh: line 2: $'\r': command not found
: no mount point specified.
cp: cannot stat '/tmp/resolv.conf': No such file or directory
/etc/init.d/expressvpn: line 207: log_action_msg: command not found
": no such file or directoryressvpnActivate.sh
Cannot connect to expressvpnd daemon.
It seems that the expressvpn daemon is not running. Please run "sudo service expressvpn restart" to 
start it.
If the problem persists, please contact us.
: No such file or directory /bin/bash

如果我拉原始图像并运行它,就没有问题。我是Docker的新手,似乎无法弄清楚该如何解决。

我希望有人可以帮助我解决这个问题。

0 个答案:

没有答案