简体   繁体   中英

Can Docker image from Ubuntu 14.04 be used on Ubuntu 16.04?

If I were to create a docker image with Ubuntu 14.04 as host OS, can I use this docker image on a different machine with Ubuntu 16.04 as host OS?

What about if the image is created on Ubuntu 16.04, can it be used on machine with Ubuntu 14.04?

Update: It seems I should have posted this link before: Can I use docker image ubuntu 14.04 if my host is 12.04?

It seems downvoters are not aware of the corner cases, and hence this unwarranted reaction. Downvoting without explanation is counter-productive and does not help with the learning.

Docker solves the problem "works on my machine" as you have heard of.

So that means the host OS could be any if Docker runs over it, you can use your Dockerfile on any OS, it doesn't matter whether it is Ubuntu 14.04 or 16.04.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM