小编Ben*_*son的帖子

Docker撰写:没有这样的图像

当我跑docker-compose up,我得到这个错误:

root@ubuntu:/home/benson/Docker/HaproxyMy# docker-compose up
Recreating 950ddc308278_950ddc308278_950ddc308278_950ddc308278_950ddc308278_haproxymy_webb_1
Recreating 485800bdf3a1_485800bdf3a1_485800bdf3a1_485800bdf3a1_485800bdf3a1_haproxymy_webc_1
Recreating 2b3338d88716_2b3338d88716_2b3338d88716_2b3338d88716_2b3338d88716_haproxymy_weba_1

ERROR: for webb  No such image: sha256:15853e771e7ca3f5eecee38fcf97efd3ee164c1b66e2ef543d9985a04e78e099

ERROR: for webc  No such image: sha256:15853e771e7ca3f5eecee38fcf97efd3ee164c1b66e2ef543d9985a04e78e099

ERROR: for weba  No such image: sha256:15853e771e7ca3f5eecee38fcf97efd3ee164c1b66e2ef543d9985a04e78e099
Run Code Online (Sandbox Code Playgroud)

docker-compose.yml:

weba:
    build: ./web
    expose:
        - 80

webb:
    build: ./web
    expose:
        - 80

webc:
    build: ./web
    expose:
        - 80


haproxy:

    image: haproxy:latest

    volumes:

        - ./haproxy:/haproxy-override
        - ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
    links:

        - weba
        - webb
        - webc
    ports:

        - "80:80"
        - "70:70"
    expose:

        - "80"
        - "70"
Run Code Online (Sandbox Code Playgroud)

docker docker-compose

109
推荐指数
4
解决办法
6万
查看次数

如何在Intellij Idea中切换到其他git帐户

我使用Intellij Idea15。我以前使用帐户A将代码提交到github吗?我现在想使用帐户B将代码提交到github。如何切换到其他帐户?

java git intellij-idea

5
推荐指数
1
解决办法
5459
查看次数

使用maven将jar上传到github失败

我尝试遵循:在 github 上托管 Maven 存储库

我的 POM.xml

<parent>
    <artifactId>rf</artifactId>
    <groupId>com.zlhades</groupId>
    <version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>rfcore</artifactId>
<properties>
    <java-version>1.7</java-version>
    <github.global.server>github</github.global.server>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
                <source>${java-version}</source>
                <target>${java-version}</target>
                <encoding>UTF-8</encoding>
            </configuration>
        </plugin>
        <plugin>
            <groupId>com.github.github</groupId>
            <artifactId>site-maven-plugin</artifactId>
            <version>0.12</version>
            <configuration>
                <message>Maven artifacts for ${project.version}</message>  <!-- git commit message -->
                <noJekyll>true</noJekyll>                                  <!-- disable webpage processing -->
                <outputDirectory>${project.build.directory}/mvn-repo</outputDirectory> <!-- matches distribution management repository url above -->
                <branch>refs/heads/mvn-repo</branch>                       <!-- remote branch name -->
                <includes><include>**/*</include></includes>
                <repositoryName>RequestForward</repositoryName>      <!-- github repo name -->
                <repositoryOwner>zlhades</repositoryOwner>    <!-- github username  -->
            </configuration>
            <executions> …
Run Code Online (Sandbox Code Playgroud)

java git github maven

5
推荐指数
1
解决办法
1283
查看次数

在 HttpURLConnection 中查看详细日志

我写了以下代码:

public static void main(String args[]) throws IOException {
    URL url = new URL("http://stackoverflow.com/");
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    System.out.print(conn.getResponseMessage());
}
Run Code Online (Sandbox Code Playgroud)
  1. 当我运行此方法时,我想在控制台中显示所有调试信息。
  2. 我想看看从日志发送了什么样的 http 请求。

java http

2
推荐指数
1
解决办法
2891
查看次数

标签 统计

java ×3

git ×2

docker ×1

docker-compose ×1

github ×1

http ×1

intellij-idea ×1

maven ×1