# Lightbox not showing up on uploaded images after update

**URL:** https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009
**Category:** Self-hosting
**Created:** [2017年十月29日 17:25 UTC](https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009 "2017-10-29T17:25:24Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Michael\_Uray](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael_uray/32/183119_2.png) [@Michael\_Uray](https://meta.discourse.org/u/Michael_Uray)
#### Post date: [2020年七月4日 15:07 UTC](https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009/13 "2020-07-04T15:07:36Z")

</div>

我遇到了同样的问题。

```plaintext
无法访问 '/uploads/default/original/1X/fe2af548af4a22f4802ddaa54afa557ae557417c.png' 以获取其尺寸。

```

我可以从外部访问该图片，但在 Docker 镜像内部却无法访问。

```plaintext
root@dk1-dis:/shared/log/rails# wget https://dis.domain.com/uploads/default/original/1X/b2ef855c010c044aee13177269baaa36453c6193.png
--2020-07-04 14:53:33-- https://dis.domain.com/uploads/default/original/1X/b2ef855c010c044aee13177269baaa36453c6193.png
正在解析 dis.domain.com (dis.domain.com)... 172.20.0.6
正在连接 dis.domain.com (dis.domain.com)|172.20.0.6|:443... 失败：连接被拒绝。

```

Docker 镜像内部的 DNS 指向了 Docker 网络中的内部 IP 地址 `172.20.0.6`，而不是该域名实际设置的对外公网 IP 地址。

```plaintext
root@dk1-dis:/shared/log/rails# nslookup dis.domain.com
Server: 127.0.0.11
Address: 127.0.0.11#53

非权威应答：
Name: dis.domain.com
Address: 172.20.0.6

```

这是否是预期的行为？  
我该怎么做才能将其更改为解析为其常规的公网 IP 地址？

---

_[View the full topic](https://meta.discourse.org/t/lightbox-not-showing-up-on-uploaded-images-after-update/73009)._
