V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Meltdown  ›  全部回复第 7 页 / 共 20 页
回复总数  381
1 ... 3  4  5  6  7  8  9  10  11  12 ... 20  
2021-03-15 18:55:12 +08:00
回复了 cjpjxjx 创建的主题 生活 突然发现自己记忆力和注意力越来越差,活的越来越迷茫了
还年轻,要对未来保持希望,有句话叫 worry is misuse of imagination
2021-03-15 18:47:04 +08:00
回复了 dandelion911 创建的主题 职场话题 深圳普遍大小周
@aliasliyu4 你们算工时包含午休吃饭时间吗
2021-03-11 18:49:59 +08:00
回复了 itstudying 创建的主题 问与答 大家伙买房是等额本息还是等额本金? 30 年还是 20 年?
当初没仔细想,随便选了个等额本息,现在想提前还贷,发现前面几年还的利息是等额本金的两三倍,而且感觉中国发展速度可能没以前那么快了,感觉好亏
2021-03-02 09:46:48 +08:00
回复了 wmwgijol28 创建的主题 分享发现 个税 APP,2020 年度汇算 你退了多少
专项扣除 18000 怎么来的,我怎么只能扣房贷 12000
2021-03-01 13:08:30 +08:00
回复了 lgy 创建的主题 程序员 上班没有事情的时候做什么比较好
写文档,写 wiki,看别人写的 wiki,思考重构和项目可以提升的地方
2021-02-25 13:35:14 +08:00
回复了 zhoudaiyu 创建的主题 程序员 听到有人把阈值念成阀值我都替他们觉得尬
我司一堆人把 feature 念 future 。。。错的人多了搞得知道正确答案的人很尴尬
不希望就这么等我,感觉好委婉的样子
2021-02-18 15:57:11 +08:00
回复了 ctrlands 创建的主题 成都 异地身份证补办流程
坐车回重庆随便找个派出所都可以办的,然后给你寄过来,注意要人工办理,机器办理好像还要自己再跑一趟回去领。异地办理的话,广州这边要居住证,不知道成都是不是一样的。
沙河早上的地铁是我的噩梦,幸好后来搬到公司附近了
2021-02-16 03:37:32 +08:00
回复了 dingdangnao 创建的主题 分享发现 智能音箱你们用的开心么?
小度音响,用来听新闻,闹钟,和听歌,可以听 qq 音乐的歌。缺点是新闻源不怎么样,播新闻的 tts 很垃圾
ubuntu, 最成熟,没有乱七八糟的问题,用户多,出了问题网上也搜得到,各种软件有 linux 版本的话也多半是支持 ubuntu 的
wsl2 按我的体验就是没有图形界面,和 virtualbox 不兼容,没有 systemd
2021-02-13 19:03:36 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
@Kobayashi 改成 Type=oneshot 和 RemainAfterExit=true 是可以的,Type=simple 和 Type=forking 都不行,容器退出应该是 systemd 有个超时检测调用了 ExecStop
2021-02-13 10:26:18 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
systemctl status blog_mysql.service

● blog_mysql.service - docker blog mysql
Loaded: loaded (/etc/systemd/system/blog_mysql.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2021-02-13 09:33:09 CST; 52min ago
Main PID: 1872880 (code=exited, status=0/SUCCESS)

2 月 13 09:32:56 xx systemd[1]: Started docker blog mysql.
2 月 13 09:32:57 xx docker[1872880]: blog_mysql
2 月 13 09:33:09 xx docker[1872988]: blog_mysql
2 月 13 09:33:09 xx systemd[1]: blog_mysql.service: Succeeded.
2021-02-13 10:24:36 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
journalctl -xe

2 月 13 09:32:56 xx kernel: docker0: port 2(vethb1ae047) entered blocking state
2 月 13 09:32:56 xx kernel: docker0: port 2(vethb1ae047) entered disabled state
2 月 13 09:32:56 xx kernel: device vethb1ae047 entered promiscuous mode
2 月 13 09:32:56 xx NetworkManager[1263]: <info> [1613179976.7431] manager: (vethaeeaa88): new Veth device (/org/freedesktop/NetworkManager/Devices/1410)
2 月 13 09:32:56 xx NetworkManager[1263]: <info> [1613179976.7441] manager: (vethb1ae047): new Veth device (/org/freedesktop/NetworkManager/Devices/1411)
2 月 13 09:32:56 xx systemd-udevd[1872858]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
2 月 13 09:32:56 xx systemd-udevd[1872856]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
2 月 13 09:32:56 xx systemd-udevd[1872858]: Using default interface naming scheme 'v245'.
2 月 13 09:32:56 xx systemd-udevd[1872858]: vethaeeaa88: Could not generate persistent MAC: No data available
2 月 13 09:32:56 xx systemd-udevd[1872856]: Using default interface naming scheme 'v245'.
2 月 13 09:32:56 xx systemd-udevd[1872856]: vethb1ae047: Could not generate persistent MAC: No data available
2 月 13 09:32:56 xx polkitd(authority=local)[1299]: Unregistered Authentication Agent for unix-process:1872840:63220323 (system bus name :1.875, object path /org/freedesktop/PolicyKit1/Authenticatio>
2 月 13 09:32:57 xx containerd[1546]: time="2021-02-13T09:32:57.325928526+08:00" level=info msg="shim containerd-shim started" address="unix:///run/containerd/s/9a0e9724da48b957eb2f02124421f9ff074d3>
2 月 13 09:32:57 xx systemd[3813]: run-docker-runtime\x2drunc-moby-675f25a5a8b9e86070480e8abe2ab1fe30a10505194f28b872b7ca0db0ff7ef8-runc.Kjcwfg.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:32:57 xx systemd[1]: run-docker-runtime\x2drunc-moby-675f25a5a8b9e86070480e8abe2ab1fe30a10505194f28b872b7ca0db0ff7ef8-runc.Kjcwfg.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit run-docker-runtime\x2drunc-moby-675f25a5a8b9e86070480e8abe2ab1fe30a10505194f28b872b7ca0db0ff7ef8-runc.Kjcwfg.mount has successfully entered the 'dead' state.
2 月 13 09:32:57 xx kernel: eth0: renamed from vethaeeaa88
2 月 13 09:32:57 xx kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethb1ae047: link becomes ready
2 月 13 09:32:57 xx kernel: docker0: port 2(vethb1ae047) entered blocking state
2 月 13 09:32:57 xx kernel: docker0: port 2(vethb1ae047) entered forwarding state
2 月 13 09:32:57 xx NetworkManager[1263]: <info> [1613179977.5736] device (vethb1ae047): carrier: link connected
2 月 13 09:32:57 xx gnome-shell[4090]: Removing a network device that was not added
2 月 13 09:32:57 xx gnome-shell[2375]: Removing a network device that was not added
2 月 13 09:32:57 xx docker[1872880]: blog_mysql
2 月 13 09:32:59 xx avahi-daemon[1256]: Joining mDNS multicast group on interface vethb1ae047.IPv6 with address fe80::bd:24ff:fe31:6cd6.
2 月 13 09:32:59 xx avahi-daemon[1256]: New relevant interface vethb1ae047.IPv6 for mDNS.
2 月 13 09:32:59 xx avahi-daemon[1256]: Registering new address record for fe80::bd:24ff:fe31:6cd6 on vethb1ae047.*.
2 月 13 09:33:07 xx dockerd[1576671]: time="2021-02-13T09:33:07.928906586+08:00" level=info msg="Container 675f25a5a8b9e86070480e8abe2ab1fe30a10505194f28b872b7ca0db0ff7ef8 failed to exit within 10 s>
2 月 13 09:33:08 xx containerd[1546]: time="2021-02-13T09:33:08.184891024+08:00" level=info msg="shim reaped" id=675f25a5a8b9e86070480e8abe2ab1fe30a10505194f28b872b7ca0db0ff7ef8
2 月 13 09:33:08 xx dockerd[1576671]: time="2021-02-13T09:33:08.195821548+08:00" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
2 月 13 09:33:08 xx kernel: docker0: port 2(vethb1ae047) entered disabled state
2 月 13 09:33:08 xx kernel: vethaeeaa88: renamed from eth0
2 月 13 09:33:08 xx NetworkManager[1263]: <info> [1613179988.3165] manager: (vethaeeaa88): new Veth device (/org/freedesktop/NetworkManager/Devices/1412)
2 月 13 09:33:08 xx systemd-udevd[1873154]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
2 月 13 09:33:08 xx systemd-udevd[1873154]: Using default interface naming scheme 'v245'.
2 月 13 09:33:08 xx systemd-udevd[1873154]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
2 月 13 09:33:08 xx avahi-daemon[1256]: Interface vethb1ae047.IPv6 no longer relevant for mDNS.
2 月 13 09:33:08 xx kernel: docker0: port 2(vethb1ae047) entered disabled state
2 月 13 09:33:08 xx avahi-daemon[1256]: Leaving mDNS multicast group on interface vethb1ae047.IPv6 with address fe80::bd:24ff:fe31:6cd6.
2 月 13 09:33:08 xx kernel: device vethb1ae047 left promiscuous mode
2 月 13 09:33:08 xx kernel: docker0: port 2(vethb1ae047) entered disabled state
2 月 13 09:33:08 xx avahi-daemon[1256]: Withdrawing address record for fe80::bd:24ff:fe31:6cd6 on vethb1ae047.
2 月 13 09:33:08 xx NetworkManager[1263]: <info> [1613179988.4405] device (vethb1ae047): released from master device docker0
2 月 13 09:33:08 xx gnome-shell[2375]: Removing a network device that was not added
2 月 13 09:33:08 xx gnome-shell[4090]: Removing a network device that was not added
2 月 13 09:33:08 xx gnome-shell[4090]: Removing a network device that was not added
2 月 13 09:33:08 xx gnome-shell[2375]: Removing a network device that was not added
2 月 13 09:33:08 xx systemd[1659]: run-docker-netns-b3796211c9c6.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:33:08 xx systemd[3813]: run-docker-netns-b3796211c9c6.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:33:08 xx systemd[1]: run-docker-netns-b3796211c9c6.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit run-docker-netns-b3796211c9c6.mount has successfully entered the 'dead' state.
2 月 13 09:33:08 xx systemd[3813]: var-lib-docker-overlay2-c44d12767b3df5f7d341d9363a331d824baae317460677d8d1a635ddfb6b70e3-merged.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:33:08 xx systemd[1659]: var-lib-docker-overlay2-c44d12767b3df5f7d341d9363a331d824baae317460677d8d1a635ddfb6b70e3-merged.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:33:08 xx systemd[1]: var-lib-docker-overlay2-c44d12767b3df5f7d341d9363a331d824baae317460677d8d1a635ddfb6b70e3-merged.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit var-lib-docker-overlay2-c44d12767b3df5f7d341d9363a331d824baae317460677d8d1a635ddfb6b70e3-merged.mount has successfully entered the 'dead' state.
2 月 13 09:33:09 xx docker[1872988]: blog_mysql
2 月 13 09:33:09 xx systemd[1]: blog_mysql.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support:
--
-- The unit blog_mysql.service has successfully entered the 'dead' state.
2021-02-13 10:22:39 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
journalctl -xe

-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:32:39 xx systemd[1]: run-docker-runtime\x2drunc-moby-3918c86a3cc9c5bec18bd10e8423336f6e2d07a2ed4e6a4a72bcdae1c9d0a134-runc.zswgif.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit run-docker-runtime\x2drunc-moby-3918c86a3cc9c5bec18bd10e8423336f6e2d07a2ed4e6a4a72bcdae1c9d0a134-runc.zswgif.mount has successfully entered the 'dead' state.
2 月 13 09:32:39 xx systemd[1659]: run-docker-runtime\x2drunc-moby-3918c86a3cc9c5bec18bd10e8423336f6e2d07a2ed4e6a4a72bcdae1c9d0a134-runc.zswgif.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:32:39 xx systemd[3813]: run-docker-runtime\x2drunc-moby-3918c86a3cc9c5bec18bd10e8423336f6e2d07a2ed4e6a4a72bcdae1c9d0a134-runc.zswgif.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit UNIT has successfully entered the 'dead' state.
2 月 13 09:32:52 xx polkitd(authority=local)[1299]: Registered Authentication Agent for unix-process:1872840:63220323 (system bus name :1.875 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object p>
2 月 13 09:32:52 xx systemd[1]: Started Run anacron jobs.
-- Subject: anacron.service 单元已结束启动
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- anacron.service 单元已结束启动。
--
-- 启动结果为“done”。
2 月 13 09:32:52 xx anacron[1872847]: Anacron 2.3 started on 2021-02-13
2 月 13 09:32:52 xx anacron[1872847]: Normal exit (0 jobs run)
2 月 13 09:32:52 xx systemd[1]: anacron.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- anacron.service 单元已结束启动。
-- anacron.service 单元已结束启动。
--
-- 启动结果为“done”。
2 月 13 09:32:52 xx anacron[1872847]: Anacron 2.3 started on 2021-02-13
2 月 13 09:32:52 xx anacron[1872847]: Normal exit (0 jobs run)
2 月 13 09:32:52 xx systemd[1]: anacron.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit anacron.service has successfully entered the 'dead' state.
2 月 13 09:32:56 xx polkitd(authority=local)[1299]: Operator of unix-session:2 successfully authenticated as unix-user:aaa to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage->
2 月 13 09:32:56 xx systemd[1]: Started docker blog mysql.
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit anacron.service has successfully entered the 'dead' state.
2 月 13 09:32:56 xx polkitd(authority=local)[1299]: Operator of unix-session:2 successfully authenticated as unix-user:aaa to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage->
2 月 13 09:32:56 xx systemd[1]: Started docker blog mysql.
-- Subject: blog_mysql.service 单元已结束启动
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- blog_mysql.service 单元已结束启动。
--
-- 启动结果为“done”。
2021-02-13 10:10:52 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
@lululau 通过反向代理做服务器用的,不想直接部署在物理机上
2021-02-13 09:37:06 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
journalctl -u xx.service

>2 月 13 09:32:56 xx systemd[1]: Started docker blog mysql.
>2 月 13 09:32:57 xx docker[1872880]: blog_mysql
>2 月 13 09:33:09 xx docker[1872988]: blog_mysql
>2 月 13 09:33:09 xx systemd[1]: blog_mysql.service: Succeeded.

docker ps -a

>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
>675f25a5a8b9 mysql "docker-entrypoint.s…" 3 weeks ago Exited (137) 2 seconds ago blog_mysql


之前创建这个容器的命令:
```
docker run --name blog_mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag
```
2021-02-12 23:50:40 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
@Kobayashi 我把启动容器的`-d`选项去掉就不会退出了
2021-02-12 19:45:25 +08:00
回复了 Meltdown 创建的主题 Docker ubuntu20.04 用 systemd 运行容器会自动异常退出
@boris93 开机启动的目的已经达到了,只是现在还奇怪为什么敲命令可以直接执行成功的,到 systemd 这里就不行了,看 dockerd 的日志也没看出什么名堂
1 ... 3  4  5  6  7  8  9  10  11  12 ... 20  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2864 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms · UTC 14:18 · PVG 22:18 · LAX 06:18 · JFK 09:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.