The codes below are to create Phpmyadmin image and container but after running the code docker-compose up -d, I got the following error.
***PS C:\Users\LIFE 3\eclipse-workspace\Arkk> docker-compose up -d Starting 00beb95f3aa2_arkk_db_1 … error ***
ERROR: for 00beb95f3aa2_arkk_db_1 Cannot start service db: Ports are not available: unable to list exposed ports: Get http://unix/forwards/list: open \.\pipe\dockerBackendApiServer: The system cannot find the file specified.
ERROR: for db Cannot start service db: Ports are not available: unable to list exposed ports: Get http://unix/forwards/list: open \.\pipe\dockerBackendApiServer: The system cannot find the file specified.
ERROR: Encountered errors while bringing up the project.
BELOW CODE IS MY YML FILE DETAILS
version: ‘3’
volumes:
- db:*
services:
- db:*
-
image: mariadb*
-
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW*
-
restart: always*
-
volumes:*
-
- db:/var/lib/mysql*
-
environment:*
-
- MYSQL_ROOT_PASSWORD=onebox1234*
-
- MYSQL_PASSWORD=onebox1234*
-
- MYSQL_DATABASE=arkkk *
-
- MYSQL_USER=adebayo*
- app:*
-
image: phpmyadmin/phpmyadmin*
-
container_name: phpmyadmin*
-
environment:*
-
- PMA_ARBITRARY=1*
-
restart: always*
-
links:*
-
- db*
-
ports:*
-
- 8089:80*
-
volumes:*
-
- /sessions*