今天在学docker,突然想到了Appimage,个人感觉其实两者的功能都是类似的,是“一次打包,到处运行”思想的体现。但我个人对于这两者都不是很熟悉,对于这两者之间的关系找了一些资料:
Whereas Docker is focusing on containers for servers operated by “devops”, AppImage is focusing on desktop applications operated by end users.
Whereas Docker puts everything (besides the Kernel) into a container and shields it from the host, AppImages use the host OS and do not shield the application from it.
That being said, you could use AppImage for server applications, and you could bundle everything if you wanted. But then you could probably just as well use Docker.
Compare AppImages to .app applications inside .dmg disk images on macOS.
也就是说其实两者功能上是类似的,只不过docker针对B/S架构,而Appimage针对C/S架构。如果你硬是要把Appimage当成docker来用,也是可以的,但是不推荐。至于两者的工作原理上其实还有一些差距的。