小编Pal*_*all的帖子

删除网络时出错:<network> id 具有活动端点

我正在尝试使用 jenkins 作业运行 docker compose down。“sudo docker-compose down --remove-orphans”

我在使用 docker-compose down 时使用了 --remove-orphans 命令。仍然给出以下错误。

正在删除网络。删除网络时出现 abc 错误:网络 id ************ 有活动端点 状态为 1 的命令失败: sudo docker-compose down --remove-orphans

下面是我的 docker 撰写:

version: "3.9"
services:
  abc:
    image: <img>
    container_name: 'abc'
    hostname: abc
    ports:
      - "5****:5****"
      - "1****:1***"
    volumes:
      - ~/.docker-conf/<volume>
    networks:
      - <network>

      
  container-app-1:
    image: <img2>
    container_name: 'container-app-1'
    hostname: 'container-app-1'
    depends_on:
      - abc
    ports:
      - "8085:8085"
    env_file: ./.env
    networks:
      - <network>

networks:
  <network>:
    driver: bridge
    name: <network>
Run Code Online (Sandbox Code Playgroud)

containers jenkins docker docker-compose

15
推荐指数
2
解决办法
3万
查看次数

如何在git clone中修复"Filename too long error"

我正在尝试使用以下命令从我的bitbucket存储库的特定分支中获取一个git clone : git clone <url> --branch <branchname>.

但是,我在获取克隆时遇到以下错误:

错误:无法创建文件foldername/nodemodules/......:文件名太长.

我尝试通过在我的git cmd中运行以下命令来解决这个问题 git config --system core.longpaths true.

但我得到:

错误:无法锁定配置文件c://.gitconfig:权限被拒绝错误:无法锁定配置文件c://.gitconfig:无效的参数.

请建议如何解决这两个错误.

java git github gitlab

5
推荐指数
4
解决办法
7116
查看次数

github actions - 结帐操作中的问题

我是 github 动作跑步者的新手。我从 master 创建了一个 test-master 分支,另一个功能分支也从 master test-feature 中取出。我的 test-master 分支有一个与 terraform 相关的工作流程。但是,我在 git checkout 操作 PFB 代码和错误中遇到错误。

name: 'Terraform'
on: [pull_request]

jobs:
  terraform:
    name: 'Terraform'
    runs-on: ubuntu-latest

    # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
    defaults:
      run:
        shell: bash

    steps:
    # Checkout the repository to the GitHub Actions runner
    - name: Checkout
      uses: actions/checkout@test-master

    # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with …
Run Code Online (Sandbox Code Playgroud)

github jenkins terraform aws-cloud9 github-actions-runners

3
推荐指数
1
解决办法
9076
查看次数

无法使用Keycloak验证应用程序用户的登录

我正在研究 React 应用程序与 Keycloak 的集成。我已在本地计算机上安装了 Keycloak 服务器版本 11.0.2。我能够访问管理登录并创建管理员用户。我还使用 Keycloak 创建了一个带有凭据的自定义客户端和用户。我的 React 应用程序托管在我的机器的端口 9000 上,Keycloak 托管在 8080(默认)端口上。现在,当我重定向到我的应用程序 URL 时,它会自动重定向到以下 URL:

http://localhost:8080/auth/realms/{Custom_realm}/protocol/openid-connect/auth?client_id={Custom_Client}&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2F&state=r8yy83fdgd-27f8-4aa9-a679-01sfdsgd9&response_mode=fragment&response_type=code&scope=openid&nonce=27fedfgf89-66be-4484-bbcc-aabb4saddc4
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

URL 正在渲染登录页面,无需 CSS。不知道为什么 CSS 没有被渲染。而且它也没有进行身份验证并给出错误

无法 POST /realms/{Realm}/login-actions/authenticate

java reactjs keycloak keycloak-services keycloak-rest-api

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