Docker 如何从podman容器连接到localhost?

Docker 如何从podman容器连接到localhost?,docker,strapi,podman,Docker,Strapi,Podman,我有一个运行Strapi后端的Podman容器——现在我正试图用Gatsby应用程序运行第二个。我可以通过curl从第二个容器内部成功连接到Strapi: root@f76af23d3825:/home/user/frontend-gatsby# curl 172.18.0.1:11396 curl 172.18.0.1:11396 <!doctype html> <html> <head> <meta charset="utf-8

我有一个运行Strapi后端的Podman容器——现在我正试图用Gatsby应用程序运行第二个。我可以通过
curl
从第二个容器内部成功连接到Strapi:

root@f76af23d3825:/home/user/frontend-gatsby# curl 172.18.0.1:11396
curl 172.18.0.1:11396
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>Welcome to your Strapi app</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="robots" content="noindex, nofollow">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css" rel="stylesheet" />
我做错了什么

info Starting to fetch data from Strapi - 172.18.0.1:11396/main-pages?_limit=1000
info Starting to fetch data from Strapi - 172.18.0.1:11396/training-categories?_limit=1000
info Starting to fetch data from Strapi - 172.18.0.1:11396/training-terms?_limit=1000
info Starting to fetch data from Strapi - 172.18.0.1:11396/info-news?_limit=1000
info Starting to fetch data from Strapi - 172.18.0.1:11396/people?_limit=1000
success Fetched Strapi Data - 75.435s

 ERROR #11321  PLUGIN
⠦ Fetched Strapi Data
"gatsby-source-strapi" threw an error while running the sourceNodes lifecycle:
connect ECONNREFUSED 0.0.44.132:80

  Error: connect ECONNREFUSED 0.0.44.132:80

not finished source and transform nodes - 75.547s