$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e05804ab6d64 alpine:edge "ping 127.0.0.1"21 seconds ago Up 4 seconds mysql_debug-client_1
c052ceeb6d3b mysql "docker-entrypoint..."21 seconds ago Up 5 seconds 3306/tcp mysql_db_1
2b0446daab4c adminer "entrypoint.sh doc..."26 seconds ago Up 5 seconds 0.0.0.0:8080->8080/tcp mysql_adminer_1
Using the Debug Container:
I will use the debug container as the client to connect to the internal services, for example, the mysql-client:
1234
$ apk update
$ apk add mysql-client
$ mysql -h db -u root -ppassword
MySQL [(none)]>
Also, you will find the persistent data directory for our workspace:
12
$ ls /root/workspace/
python
Accessing the MySQL WebUI: Adminer
Access the service via the exposed endpoint:
1
+ http://localhost:8080/
The login view:
Creating the Table:
Deleting the Environment:
The External Resources will not be deleted:
12345
$ docker-compose -f mysql-compose.yml down
Removing mysql_debug-client_1 ... doneRemoving mysql_db_1 ... doneRemoving mysql_adminer_1 ... doneNetwork docknet is external, skipping