GithubHelp home page GithubHelp logo

## Issue Description / 问题描述在多台机器上尝试执行docker compose up 容器出现mysql问题,然后执行docker compose build也出现问题 about xagent HOT 2 OPEN

SOMMTA avatar SOMMTA commented on August 15, 2024
## Issue Description / 问题描述在多台机器上尝试执行docker compose up 容器出现mysql问题,然后执行docker compose build也出现问题

from xagent.

Comments (2)

AuroraCovariance avatar AuroraCovariance commented on August 15, 2024

我遇到了相同问题,这是我的成功方法,手动建数据库
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> conda activate xagent
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker-compose down

time="2024-05-19T09:59:03+08:00" level=warning msg="C:\Users\JackyFeng\Desktop\ai scene\XAgent\docker-compose.yml: version is obsolete"
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> Remove-Item -Recurse -Force .\mysql_data\

Remove-Item : 找不到路径“C:\Users\JackyFeng\Desktop\ai scene\XAgent\mysql_data\”,因为该路径不存在。
所在位置 行:1 字符: 1

  • Remove-Item -Recurse -Force .\mysql_data\
  •   + CategoryInfo          : ObjectNotFound: (C:\Users\JackyF...ent\mysql_data\:String) [Remove-Item], ItemNotFoundEx
     ception
      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
    
    

PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker volume ls

DRIVER VOLUME NAME
local 0c2ed82733bee71e7f3e4f86ec2321484177190c2a1492767a6017b347360737
local 0d140ab15df9f36031bc696304fc2ce001765de5dd37feecb887ba9b47b670ec
local 1acc89e3a221da5c3f90677a722bfb78f5de9278ef2061d5a2b28eba5cca2a71
local 04b9351d4f00743d4ca4237fd3570eed21b50db866a2c03f4f2b9664d25af128
local 6c56a5f342024811ac61e5afe8538e5577c82a383962653a8a3283ebb3b35200
local 8b92d257346495458227518ef3e7f7be935301fdafa9aae2349b842abb426e46
local 882d3c4683256762a5458f3cfa597c2356007d58e7c1236ad0303efa5e76f110
local cbd9b51b92cbad3f7e773af9b8840fed1979f2f56d1a80dc6c7f62eb95cb502e
local cc2e30a13219908c76040468e4f40c63c4937f20831431ada18a7533a9d3f0bf
local d30f9b21fae523f3367754dccedb545e8d3ef76039edc14a12fff6c6e5e7ab49
local de39f6bbc26b35d188edc2e617daf38adcddcab9ff2aaf1ef7b26ad3c7fe9070
local e310ca9107d2c7417f8d23881a062ee53702907087ce090617c6a90f09dec181
local toolserverconfig
local xagent_xagentmongodb
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker-compose down

time="2024-05-19T10:03:23+08:00" level=warning msg="C:\Users\JackyFeng\Desktop\ai scene\XAgent\docker-compose.yml: version is obsolete"
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker volume ls
DRIVER VOLUME NAME
local 0c2ed82733bee71e7f3e4f86ec2321484177190c2a1492767a6017b347360737
local 0d140ab15df9f36031bc696304fc2ce001765de5dd37feecb887ba9b47b670ec
local 1acc89e3a221da5c3f90677a722bfb78f5de9278ef2061d5a2b28eba5cca2a71
local 04b9351d4f00743d4ca4237fd3570eed21b50db866a2c03f4f2b9664d25af128
local 6c56a5f342024811ac61e5afe8538e5577c82a383962653a8a3283ebb3b35200
local 8b92d257346495458227518ef3e7f7be935301fdafa9aae2349b842abb426e46
local 882d3c4683256762a5458f3cfa597c2356007d58e7c1236ad0303efa5e76f110
local cbd9b51b92cbad3f7e773af9b8840fed1979f2f56d1a80dc6c7f62eb95cb502e
local cc2e30a13219908c76040468e4f40c63c4937f20831431ada18a7533a9d3f0bf
local d30f9b21fae523f3367754dccedb545e8d3ef76039edc14a12fff6c6e5e7ab49
local de39f6bbc26b35d188edc2e617daf38adcddcab9ff2aaf1ef7b26ad3c7fe9070
local e310ca9107d2c7417f8d23881a062ee53702907087ce090617c6a90f09dec181
local toolserverconfig
local xagent_xagentmongodb
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker-compose up -d xagent-mysql

time="2024-05-19T10:09:33+08:00" level=warning msg="C:\Users\JackyFeng\Desktop\ai scene\XAgent\docker-compose.yml: version is obsolete"
[+] Running 2/2
✔ Network tool-server-network Created 0.0s
✔ Container xagent-xagent-mysql-1 Started 0.0s
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker inspect xagent-mysql

[]
Error: No such object: xagent-mysql
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker inspect xagent-mysql

[]
Error: No such object: xagent-mysql
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0bf77f180109 mysql "docker-entrypoint.s…" About a minute ago Up About a minute (healthy) 0.0.0.0:3306->3306/tcp, 33060/tcp xagent-xagent-mysql-1
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker inspect xagent-xagent-mysql-1

[
{
"Id": "0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de",
"Created": "2024-05-19T02:09:33.174607121Z",
"Path": "docker-entrypoint.sh",
"Args": [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 4935,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-05-19T02:09:33.421017477Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2024-05-19T02:10:03.423928142Z",
"End": "2024-05-19T02:10:03.452810947Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:10:33.453706007Z",
"End": "2024-05-19T02:10:33.493433484Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:11:03.49278982Z",
"End": "2024-05-19T02:11:03.510926459Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:11:33.510268459Z",
"End": "2024-05-19T02:11:33.538416127Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
}
]
}
},
"Image": "sha256:e9387c13ed83ab7915ed1cf73d505c6604c1f237b9f059ca26000ea70fa9dafb",
"ResolvConfPath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/hostname",
"HostsPath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/hosts",
"LogPath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de-json.log",
"Name": "/xagent-xagent-mysql-1",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"C:\Users\JackyFeng\Desktop\ai scene\XAgent\XAgentServer\database\sql:/docker-entrypoint-initdb.d:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "tool-server-network",
"PortBindings": {
"3306/tcp": [
{
"HostIp": "",
"HostPort": "3306"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4-init/diff:/var/lib/docker/overlay2/0b86c143ff0f92a2832a0301892094bb492223ebc42d1dc03327e3a5f13bbbe4/diff:/var/lib/docker/overlay2/169d459f932329e6256528993ca23d84186142f0f8587364500c7d1df0fdc6af/diff:/var/lib/docker/overlay2/72321388c3769bc8f4fb78fed7c8ef377243f0e7fed9ba70d057e56b15d508d1/diff:/var/lib/docker/overlay2/8e3e19440d5ce383b9e3c943ed9973da21bf273ae316d18792b7fc0c0a86a782/diff:/var/lib/docker/overlay2/4415eac5896f23c760a78363f80de2b9c8bf455bcdf3344a8e778740b3042275/diff:/var/lib/docker/overlay2/6b04e380372eee7bac6e912c72bb58c9dff5d5b176616d56308447c0f7219379/diff:/var/lib/docker/overlay2/18d2e7e43ace6a947c6a31dbd46d4019a525e7ddd8875434d97ad675ecf63431/diff:/var/lib/docker/overlay2/feaac4895bfe13308b437f0f80a62d9d7d3d5367a277f25a4a14064c3f951299/diff:/var/lib/docker/overlay2/e237b47515b6a62e4899d99061b5a2685b4b7be7711b5196c8d9f80952190877/diff:/var/lib/docker/overlay2/d769ea734fd6d865ab80ba1f6374694c20f22ea29cddeb7c759d9a38d8ef6941/diff", "MergedDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4/merged",
"UpperDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4/diff",
"WorkDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "C:\Users\JackyFeng\Desktop\ai scene\XAgent\XAgentServer\database\sql",
"Destination": "/docker-entrypoint-initdb.d",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "f28feb673ef2f2f33bfc54ff89aa9366141cbf0675b0362bb9da42e2a06f37bd",
"Source": "/var/lib/docker/volumes/f28feb673ef2f2f33bfc54ff89aa9366141cbf0675b0362bb9da42e2a06f37bd/_data",
"Destination": "/var/lib/mysql",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "0bf77f180109",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"3306/tcp": {},
"33060/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"MYSQL_ROOT_PASSWORD=xagent",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GOSU_VERSION=1.17",
"MYSQL_MAJOR=8.4",
"MYSQL_VERSION=8.4.0-1.el9",
"MYSQL_SHELL_VERSION=8.4.0-1.el9"
],
"Cmd": [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci"
],
"Healthcheck": {
"Test": [
"CMD-SHELL",
"mysql -h localhost -u root -pxagent -e 'SELECT 1'"
],
"Timeout": 20000000000,
"Retries": 20
},
"Image": "mysql",
"Volumes": {
"/var/lib/mysql": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "0463f096e584fda5c839b2d8d4848a2bc5b45c939c0aeb569d85b2e1f4bd5ce8",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "",
"com.docker.compose.image": "sha256:e9387c13ed83ab7915ed1cf73d505c6604c1f237b9f059ca26000ea70fa9dafb",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "xagent",
"com.docker.compose.project.config_files": "C:\Users\JackyFeng\Desktop\ai scene\XAgent\docker-compose.yml",
"com.docker.compose.project.working_dir": "C:\Users\JackyFeng\Desktop\ai scene\XAgent",
"com.docker.compose.service": "xagent-mysql",
"com.docker.compose.version": "2.26.1"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "3bc0246414e9262848c9b0d26d0db6d99f98b3e57c51045ae977cc6107e2cf01",
"SandboxKey": "/var/run/docker/netns/3bc0246414e9",
"Ports": {
"3306/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "3306"
}
],
"33060/tcp": null
},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"tool-server-network": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"xagent-xagent-mysql-1",
"xagent-mysql"
],
"MacAddress": "02:42:ac:13:00:02",
"NetworkID": "e39d22a1b4c3637b329af87d2098bbb11c1439199c17bee3a416dd94d89f9ce7",
"EndpointID": "ce336951d6a231728491bfa01a4fdd251d28d08cab6abf0705edba2d19a57c9f",
"Gateway": "172.19.0.1",
"IPAddress": "172.19.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DriverOpts": null,
"DNSNames": [
"xagent-xagent-mysql-1",
"xagent-mysql",
"0bf77f180109"
]
}
}
}
}
]
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker inspect xagent-xagent-mysql-1

docker exec -it xagent-xagent-mysql-1 bash

[
{
"Id": "0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de",
"Created": "2024-05-19T02:09:33.174607121Z",
"Path": "docker-entrypoint.sh",
"Args": [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 4935,
"ExitCode": 0,
"Error": "",
"StartedAt": "2024-05-19T02:09:33.421017477Z",
"FinishedAt": "0001-01-01T00:00:00Z",
"Health": {
"Status": "healthy",
"FailingStreak": 0,
"Log": [
{
"Start": "2024-05-19T02:11:33.510268459Z",
"End": "2024-05-19T02:11:33.538416127Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:12:03.537504192Z",
"End": "2024-05-19T02:12:03.56948356Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:12:33.568584834Z",
"End": "2024-05-19T02:12:33.593335733Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:13:03.592853417Z",
"End": "2024-05-19T02:13:03.618024915Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
},
{
"Start": "2024-05-19T02:13:33.618259105Z",
"End": "2024-05-19T02:13:33.671411386Z",
"ExitCode": 0,
"Output": "mysql: [Warning] Using a password on the command line interface can be insecure.\n1\n1\n"
}
]
}
},
"Image": "sha256:e9387c13ed83ab7915ed1cf73d505c6604c1f237b9f059ca26000ea70fa9dafb",
"ResolvConfPath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/hostname",
"HostsPath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/hosts",
"LogPath": "/var/lib/docker/containers/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de/0bf77f180109942d920dec069595051eaa970f3bec588dcfff78bed31585d1de-json.log",
"Name": "/xagent-xagent-mysql-1",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"C:\Users\JackyFeng\Desktop\ai scene\XAgent\XAgentServer\database\sql:/docker-entrypoint-initdb.d:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "tool-server-network",
"PortBindings": {
"3306/tcp": [
{
"HostIp": "",
"HostPort": "3306"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"ConsoleSize": [
0,
0
],
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": [],
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DeviceRequests": null,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
"/sys/devices/virtual/powercap"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4-init/diff:/var/lib/docker/overlay2/0b86c143ff0f92a2832a0301892094bb492223ebc42d1dc03327e3a5f13bbbe4/diff:/var/lib/docker/overlay2/169d459f932329e6256528993ca23d84186142f0f8587364500c7d1df0fdc6af/diff:/var/lib/docker/overlay2/72321388c3769bc8f4fb78fed7c8ef377243f0e7fed9ba70d057e56b15d508d1/diff:/var/lib/docker/overlay2/8e3e19440d5ce383b9e3c943ed9973da21bf273ae316d18792b7fc0c0a86a782/diff:/var/lib/docker/overlay2/4415eac5896f23c760a78363f80de2b9c8bf455bcdf3344a8e778740b3042275/diff:/var/lib/docker/overlay2/6b04e380372eee7bac6e912c72bb58c9dff5d5b176616d56308447c0f7219379/diff:/var/lib/docker/overlay2/18d2e7e43ace6a947c6a31dbd46d4019a525e7ddd8875434d97ad675ecf63431/diff:/var/lib/docker/overlay2/feaac4895bfe13308b437f0f80a62d9d7d3d5367a277f25a4a14064c3f951299/diff:/var/lib/docker/overlay2/e237b47515b6a62e4899d99061b5a2685b4b7be7711b5196c8d9f80952190877/diff:/var/lib/docker/overlay2/d769ea734fd6d865ab80ba1f6374694c20f22ea29cddeb7c759d9a38d8ef6941/diff", "MergedDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4/merged",
"UpperDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4/diff",
"WorkDir": "/var/lib/docker/overlay2/89d71af4887af129aaac1a6f5bbc1bf8c3dba0f2088446f00b157bc2e556ccc4/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "C:\Users\JackyFeng\Desktop\ai scene\XAgent\XAgentServer\database\sql",
"Destination": "/docker-entrypoint-initdb.d",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "f28feb673ef2f2f33bfc54ff89aa9366141cbf0675b0362bb9da42e2a06f37bd",
"Source": "/var/lib/docker/volumes/f28feb673ef2f2f33bfc54ff89aa9366141cbf0675b0362bb9da42e2a06f37bd/_data",
"Destination": "/var/lib/mysql",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "0bf77f180109",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"ExposedPorts": {
"3306/tcp": {},
"33060/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"MYSQL_ROOT_PASSWORD=xagent",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GOSU_VERSION=1.17",
"MYSQL_MAJOR=8.4",
"MYSQL_VERSION=8.4.0-1.el9",
"MYSQL_SHELL_VERSION=8.4.0-1.el9"
],
"Cmd": [
"--character-set-server=utf8mb4",
"--collation-server=utf8mb4_unicode_ci"
],
"Healthcheck": {
"Test": [
"CMD-SHELL",
"mysql -h localhost -u root -pxagent -e 'SELECT 1'"
],
"Timeout": 20000000000,
"Retries": 20
},
"Image": "mysql",
"Volumes": {
"/var/lib/mysql": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"com.docker.compose.config-hash": "0463f096e584fda5c839b2d8d4848a2bc5b45c939c0aeb569d85b2e1f4bd5ce8",
"com.docker.compose.container-number": "1",
"com.docker.compose.depends_on": "",
"com.docker.compose.image": "sha256:e9387c13ed83ab7915ed1cf73d505c6604c1f237b9f059ca26000ea70fa9dafb",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "xagent",
"com.docker.compose.project.config_files": "C:\Users\JackyFeng\Desktop\ai scene\XAgent\docker-compose.yml",
"com.docker.compose.project.working_dir": "C:\Users\JackyFeng\Desktop\ai scene\XAgent",
"com.docker.compose.service": "xagent-mysql",
"com.docker.compose.version": "2.26.1"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "3bc0246414e9262848c9b0d26d0db6d99f98b3e57c51045ae977cc6107e2cf01",
"SandboxKey": "/var/run/docker/netns/3bc0246414e9",
"Ports": {
"3306/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "3306"
}
],
"33060/tcp": null
},
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"tool-server-network": {
"IPAMConfig": null,
"Links": null,
"Aliases": [
"xagent-xagent-mysql-1",
"xagent-mysql"
],
"MacAddress": "02:42:ac:13:00:02",
"NetworkID": "e39d22a1b4c3637b329af87d2098bbb11c1439199c17bee3a416dd94d89f9ce7",
"EndpointID": "ce336951d6a231728491bfa01a4fdd251d28d08cab6abf0705edba2d19a57c9f",
"Gateway": "172.19.0.1",
"IPAddress": "172.19.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"DriverOpts": null,
"DNSNames": [
"xagent-xagent-mysql-1",
"xagent-mysql",
"0bf77f180109"
]
}
}
}
}
]
bash-5.1# s\

      ^C

bash-5.1# ^C
bash-5.1# ^C
bash-5.1# cd var/lib/mysql
bash-5.1# ex^C
bash-5.1# ^C
bash-5.1# ^C
bash-5.1# exit()

^C
bash-5.1# exit()
^C
bash-5.1# clear
bash: clear: command not found
bash-5.1# clear()
^C
bash-5.1# cd /var/lib/mysql
bash-5.1# ls -la
total 112548
-rw-r----- 1 mysql mysql 6291456 May 19 02:11 '#ib_16384_0.dblwr'
-rw-r----- 1 mysql mysql 14680064 May 19 02:09 '#ib_16384_1.dblwr'
drwxr-x--- 2 mysql mysql 4096 May 19 02:09 '#innodb_redo'
drwxr-x--- 2 mysql mysql 4096 May 19 02:09 '#innodb_temp'
drwxrwxrwt 8 mysql mysql 4096 May 19 02:09 .
drwxr-xr-x 1 root root 4096 May 9 23:52 ..
-rw-r----- 1 mysql mysql 56 May 19 02:09 auto.cnf
-rw-r----- 1 mysql mysql 2953730 May 19 02:09 binlog.000001
-rw-r----- 1 mysql mysql 158 May 19 02:09 binlog.000002
-rw-r----- 1 mysql mysql 32 May 19 02:09 binlog.index
-rw------- 1 mysql mysql 1705 May 19 02:09 ca-key.pem
-rw-r--r-- 1 mysql mysql 1108 May 19 02:09 ca.pem
-rw-r--r-- 1 mysql mysql 1108 May 19 02:09 client-cert.pem
-rw------- 1 mysql mysql 1705 May 19 02:09 client-key.pem
-rw-r----- 1 mysql mysql 5436 May 19 02:09 ib_buffer_pool
-rw-r----- 1 mysql mysql 12582912 May 19 02:09 ibdata1
-rw-r----- 1 mysql mysql 12582912 May 19 02:09 ibtmp1
drwxr-x--- 2 mysql mysql 4096 May 19 02:09 mysql
-rw-r----- 1 mysql mysql 32505856 May 19 02:09 mysql.ibd
lrwxrwxrwx 1 mysql mysql 27 May 19 02:09 mysql.sock -> /var/run/mysqld/mysqld.sock
-rw-r----- 1 mysql mysql 124 May 19 02:09 mysql_upgrade_history
drwxr-x--- 2 mysql mysql 4096 May 19 02:09 performance_schema
-rw------- 1 mysql mysql 1705 May 19 02:09 private_key.pem
-rw-r--r-- 1 mysql mysql 452 May 19 02:09 public_key.pem
-rw-r--r-- 1 mysql mysql 1108 May 19 02:09 server-cert.pem
-rw------- 1 mysql mysql 1705 May 19 02:09 server-key.pem
drwxr-x--- 2 mysql mysql 4096 May 19 02:09 sys
-rw-r----- 1 mysql mysql 16777216 May 19 02:11 undo_001
-rw-r----- 1 mysql mysql 16777216 May 19 02:11 undo_002
drwxr-x--- 2 mysql mysql 4096 May 19 02:09 xagent
bash-5.1# mysql -u root -pxagent
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29
Server version: 8.4.0 MySQL Community Server - GPL

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
| xagent |
+--------------------+
5 rows in set (0.01 sec)

mysql> USE mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SHOW TABLES;
+------------------------------------------------------+
| Tables_in_mysql |
+------------------------------------------------------+
| columns_priv |
| component |
| db |
| default_roles |
| engine_cost |
| func |
| general_log |
| global_grants |
| gtid_executed |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| innodb_index_stats |
| innodb_table_stats |
| ndb_binlog_index |
| password_history |
| plugin |
| procs_priv |
| proxies_priv |
| replication_asynchronous_connection_failover |
| replication_asynchronous_connection_failover_managed |
| replication_group_configuration_version |
| replication_group_member_actions |
| role_edges |
| server_cost |
| servers |
| slave_master_info |
| slave_relay_log_info |
| slave_worker_info |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+------------------------------------------------------+
38 rows in set (0.00 sec)

mysql> exit
Bye
bash-5.1# exit
exit

What's next?
Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug xagent-xagent-mysql-1
Learn more at https://docs.docker.com/go/debug-cli/
PS C:\Users\JackyFeng\Desktop\ai scene\XAgent> docker-compose up -d

from xagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.