-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-container.sh
More file actions
40 lines (34 loc) · 1.05 KB
/
Copy pathdebug-container.sh
File metadata and controls
40 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Debug script for container issues
echo "Container Debug Information"
echo "=========================="
echo ""
# Check Docker
echo "Docker version:"
docker --version
echo ""
# Build the container manually to see full error
echo "Building container manually..."
cd /home/brian/code/test-container/.devcontainer
# Try building with plain docker first
echo "Attempting docker build..."
docker build -t test-universal:latest \
--build-arg TIMEZONE=UTC \
--build-arg LOCALE=en_US.UTF-8 \
--build-arg USERNAME=developer \
-f Dockerfile .
if [ $? -eq 0 ]; then
echo "✓ Docker build successful!"
echo ""
echo "Testing container run..."
docker run --rm test-universal:latest /bin/bash -c "echo 'Container runs successfully!'"
else
echo "✗ Docker build failed"
echo ""
echo "Trying with simpler Dockerfile..."
fi
echo ""
echo "To use minimal configuration:"
echo "cd /home/brian/code/test-container"
echo "cp .devcontainer/devcontainer-minimal.json .devcontainer/devcontainer.json"
echo "Then try 'Reopen in Container' in VS Code"