欢迎使用 WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧!
分类: 未分类
-
Docker container容器内访问宿主机host服务
问题:docker的container内,本身是一个微小的主机,那么请求127.0.0.1或者localhost,自然是请求到了container本身的网络,而无法抵达宿主机。
在以往,需要各位去手动寻找docker创建的docker0 bridge来访问宿主机网络,但在今天,docker已经提供了非常优雅的解决办法了
Linux:
Docker版本高于v20.10(2020年12月4日更新)
在启动docker时,加入如下语句
--add-host=host.docker.internal:host-gateway
而在container内,可以直接请求host.docker.internal:PORT,来获取宿主机上提供的各种服务如果使用了Docker Compose,则应该将下面的句子加入container的声明中:
[code language=”css”]
extra_hosts:
– "host.docker.internal:host-gateway"
[/code]Mac和Windows:
Docker版本高于v18.03(2018年3月21日更新)
直接在container内使用
host.docker.internal:PORT来访问宿主机服务即可对于Mac上Docker版本低于上述版本的:
Mac Docker版本v17.12到v18.02: 使用
docker.for.mac.host.internalMac Docker版本v17.06到v18.11: 使用
docker.for.mac.localhost对于更低版本的docker,只能使用老旧的方法了,这里不再多做赘述
-
GTomatoD
I always have the problem of concentrate on something. For people like me, GTD(Get things done) work stream and tomato working method is very helpful. But I found apps are usually focus on either GTD or tomato working method. And that is where I came out the thought of combine these two things together.
Now you can not just get things done but also tomato done! : )
If you have any problem when using my App or you want something more in this App, please leave a comment below or just email me whatever you would like to say about this App.
My email address: flamelapp@gmail.com
一直以来无法专心的问题都困扰着我。对于像我这样的人来说,GTD(Get things done) 工作流和番茄工作法都是非常帮助的选择。但我发现各个App基本都专注于这两者的其中之一。这也是我想到把两者结合在一起的想法出现的地方。
现在您将不仅可以Get things done而且还能Get tomato done。:)
如果您在使用我的App时遇到了任何问题或者您希望这个App添加更多的功能,请在下方留言或者直接email给我您的想法。
我的电子邮箱地址:flamelapp@gmail.com
-
Morser-Translator is Ready!
At the first time, I want to make a game for each of the chatter to solve morse code puzzles. But for the time limits I made this little app first. And I promise that my original idea will come out very soon, please look forward to it.
For any suggestions or problems, Please leave a comment under this article or send an email to my mailbox: flamelswift@gmail.com
I’ll reply you or solve the problem as quick as I can.
And here are some captures of my app.
