简体   繁体   English

如何在Bluemix Docker中使用Java Buildpack?

[英]How to use Java Buildpack in Bluemix Docker?

I am new to Bluemix and docker. 我是Bluemix和docker的新手。 I want to use Java buildpack instead of the default IBMLiberty in docker container on Bluemix. 我想在Bluemix上的Docker容器中使用Java buildpack而不是默认的IBMLiberty。 is it possible? 可能吗? I tried searching on internet but could not find relevant information. 我尝试在Internet上搜索,但找不到相关信息。

Buildpack and docker (IBM Container) images are two different things. Buildpack和docker(IBM容器)映像是两件事。

The IBMLiberty docker/container images has a Liberty runtime deployed on it, but it is not using buildpack technology. IBMLiberty泊坞窗/容器映像上已部署了Liberty运行时,但未使用buildpack技术。

If you don't want to use IBMLiberty container images, you can load docker hub images into your private registry. 如果您不想使用IBMLiberty容器映像,则可以将docker hub映像加载到私有注册表中。 The link below contains the information. 下面的链接包含信息。

https://console.ng.bluemix.net/docs/containers/container_images_pulling.html https://console.ng.bluemix.net/docs/containers/container_images_pulling.html

Basically, you load a docker hub image locally and push it to your private registry in Bluemix. 基本上,您在本地加载了一个docker hub映像,并将其推送到Bluemix中的私有注册表。 One of the image choice is ubuntu. 图像选择之一是ubuntu。

https://hub.docker.com/_/ubuntu/ https://hub.docker.com/_/ubuntu/

After you loaded the image to your private registry, you can use "cf ic run" to run a container using that image. 将映像加载到专用注册表后,可以使用“ cf ic run”运行使用该映像的容器。 Here is the reference, 这是参考,

https://console.ng.bluemix.net/docs/containers/container_cli_reference_cfic.html#container_cli_reference_cfic__run https://console.ng.bluemix.net/docs/containers/container_cli_reference_cfic.html#container_cli_reference_cfic__run

Here are more info on using Docker image on Bluemix and cf ic commands, 这是有关在Bluemix和cf ic命令上使用Docker映像的更多信息,

https://console.ng.bluemix.net/docs/containers/container_images_adding_ov.html https://console.ng.bluemix.net/docs/containers/container_cli_reference_cfic.html https://console.ng.bluemix.net/docs/containers/container_images_adding_ov.html https://console.ng.bluemix.net/docs/containers/container_cli_reference_cfic.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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