CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca030d3cf1c2 konakart_app "/bin/sh -c '/bin/bas" 16 minutes ago Exited (1) 5 minutes ago konakart_app
08909245064b beantoast/dtkonakart_MysqL "/entrypoint.sh MysqL" 54 minutes ago Up 54 minutes 0.0.0.0:3300->3306/tcp konakart_db
我正在尝试在两个不同的容器中运行konakart应用程序和它的数据库.数据库似乎工作正常,但应用程序本身似乎没有IP.
当我输入docker inspect ca03时,我得到以下内容:
"EndpointID": "","Gateway": "","GlobalIPv6Address": "","GlobalIPv6PrefixLen": 0,"IPAddress": "","IPPrefixLen": 0,"IPv6Gateway": "","MacAddress": "",
知道如何将我的IP地址,端口8080分配给konakart_app?
最佳答案