This commit is contained in:
45
.gitea/workflows/test_dind.yaml_error
Normal file
45
.gitea/workflows/test_dind.yaml_error
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Test DIND Integration
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test-docker:
|
||||
runs-on: ubuntu
|
||||
|
||||
services:
|
||||
docker:
|
||||
image: docker:dind
|
||||
env:
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Wait
|
||||
run: sleep 10
|
||||
|
||||
- name: Verify Docker daemon is running
|
||||
run: |
|
||||
echo "Testing Docker daemon connection..."
|
||||
docker info
|
||||
|
||||
- name: List running containers
|
||||
run: |
|
||||
echo "Listing all containers..."
|
||||
docker ps -a
|
||||
|
||||
- name: Test Docker functionality
|
||||
run: |
|
||||
echo "Testing basic Docker operations..."
|
||||
docker run --rm hello-world
|
||||
|
||||
- name: Verify DIND isolation
|
||||
run: |
|
||||
echo "Testing container isolation..."
|
||||
docker run --rm alpine:latest echo "DIND is working perfectly!"
|
||||
Reference in New Issue
Block a user