Docker licensing terms for using Ubuntu

Hi,

What kind of licensing terms should be published if we are using Ubuntu 14.04 in docker container?
What licensing terms apply for using Docker CE for creating and sharing a docker image?

Thanks in advance.