Updated docker compose command
Some checks are pending
Some checks are pending
This commit is contained in:
parent
9b53f96ae2
commit
bb940ce6f0
1 changed files with 7 additions and 7 deletions
|
@ -564,7 +564,7 @@ sudo apt install -y apache2-utils
|
||||||
sudo su - SERVICE_USER
|
sudo su - SERVICE_USER
|
||||||
|
|
||||||
cd /opt/registry
|
cd /opt/registry
|
||||||
docker-compose up -d
|
docker compose up -d
|
||||||
|
|
||||||
# Exit SERVICE_USER shell
|
# Exit SERVICE_USER shell
|
||||||
exit
|
exit
|
||||||
|
@ -578,7 +578,7 @@ sudo su - SERVICE_USER
|
||||||
|
|
||||||
# Check if containers are running
|
# Check if containers are running
|
||||||
cd /opt/registry
|
cd /opt/registry
|
||||||
docker-compose ps
|
docker compose ps
|
||||||
|
|
||||||
# Test registry API
|
# Test registry API
|
||||||
curl http://localhost:5000/v2/_catalog
|
curl http://localhost:5000/v2/_catalog
|
||||||
|
@ -620,10 +620,10 @@ exit
|
||||||
- Push/pull test should complete successfully
|
- Push/pull test should complete successfully
|
||||||
|
|
||||||
**If something goes wrong**:
|
**If something goes wrong**:
|
||||||
- Check container logs: `docker-compose logs`
|
- Check container logs: `docker compose logs`
|
||||||
- Verify ports are open: `netstat -tlnp | grep :5000`
|
- Verify ports are open: `netstat -tlnp | grep :5000`
|
||||||
- Check Docker daemon config: `cat /etc/docker/daemon.json`
|
- Check Docker daemon config: `cat /etc/docker/daemon.json`
|
||||||
- Restart registry: `docker-compose restart`
|
- Restart registry: `docker compose restart`
|
||||||
|
|
||||||
### Step 5: Configure Docker for Registry Access
|
### Step 5: Configure Docker for Registry Access
|
||||||
|
|
||||||
|
@ -897,7 +897,7 @@ docker network ls
|
||||||
**If something goes wrong**:
|
**If something goes wrong**:
|
||||||
- Check script permissions: `ls -la scripts/cleanup.sh`
|
- Check script permissions: `ls -la scripts/cleanup.sh`
|
||||||
- Verify Docker access: `docker ps`
|
- Verify Docker access: `docker ps`
|
||||||
- Check registry access: `cd /opt/registry && docker-compose ps`
|
- Check registry access: `cd /opt/registry && docker compose ps`
|
||||||
- Run manually: `bash -x scripts/cleanup.sh`
|
- Run manually: `bash -x scripts/cleanup.sh`
|
||||||
|
|
||||||
#### 8.4 Set Up Automated Cleanup
|
#### 8.4 Set Up Automated Cleanup
|
||||||
|
@ -945,14 +945,14 @@ sudo ufw allow 8080/tcp # Registry UI (public read access)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker --version
|
docker --version
|
||||||
docker-compose --version
|
docker compose --version
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 10.2 Check Registry Status
|
#### 10.2 Check Registry Status
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /opt/registry
|
cd /opt/registry
|
||||||
docker-compose ps
|
docker compose ps
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 10.3 Test Registry Access
|
#### 10.3 Test Registry Access
|
||||||
|
|
Loading…
Add table
Reference in a new issue