cloud:recipe:docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
cloud:recipe:docker [2020/05/12 11:33] – [Modifying and Saving a Container] chudler | cloud:recipe:docker [2020/11/18 16:26] – [Running a Public Container] chudler | ||
---|---|---|---|
Line 2: | Line 2: | ||
=== INTRODUCTION === | === INTRODUCTION === | ||
- | This page provides examples to get started using the Openstack Container service known as [[ https:// | + | This page provides examples to get started using the Openstack Container service known as [[ https:// |
Line 10: | Line 10: | ||
======Running a Public Container====== | ======Running a Public Container====== | ||
- | To run a container | + | To run a container, first launch it on a specific *internal* network. See [[https:// |
- | < | + | < |
+ | |||
+ | The container will be assigned a //name// and an internal IP on the __cloud__ network. To access the container from the outside world, first obtain a Floating IP address and then assign it to the container: | ||
+ | |||
+ | < | ||
+ | openstack floating ip create --subnet public37 campus37 | ||
+ | openstack appcontainer add floating ip lambda-15-container 128.135.xx.xx # use the IP address result from the previous command. | ||
+ | </ | ||
+ | |||
+ | Now you can access the public IP address of the container for the default Nginx start page. | ||
Try these commands to get started (using the UUID of your running container instances): | Try these commands to get started (using the UUID of your running container instances): | ||
Line 33: | Line 42: | ||
</ | </ | ||
- | Glance has no user authentication, | + | Glance has no user authentication, |
< | < | ||
Line 50: | Line 59: | ||
< | < | ||
openstack appcontainer run --net network=campus37 --wait nginx | openstack appcontainer run --net network=campus37 --wait nginx | ||
- | sed -i -s ' | + | openstack appcontainer exec --interactive ${UUID} |
openstack appcontainer commit ${UUID} VCS_LDAPSLAVE: | openstack appcontainer commit ${UUID} VCS_LDAPSLAVE: | ||
</ | </ | ||
====Caveats===== | ====Caveats===== | ||
- | Private registries are not supported for the '' | + | Private registries are not supported for the '' |
< | < | ||
openstack appcontainer create --image-pull-policy ... | openstack appcontainer create --image-pull-policy ... |
/var/lib/dokuwiki/data/pages/cloud/recipe/docker.txt · Last modified: 2020/11/18 16:28 by chudler