cloud:recipe:docker
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cloud:recipe:docker [2020/05/12 11:32] – created chudler | cloud:recipe:docker [2020/11/18 16:28] (current) – [Modifying and Saving a 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 49: | Line 58: | ||
**Importantly**, | **Importantly**, | ||
< | < | ||
- | openstack appcontainer run --net network=campus37 | + | openstack appcontainer run --net network=cloud--wait nginx |
- | sed -i -s ' | + | openstack appcontainer exec --interactive ${UUID} |
- | openstack appcontainer commit | + | openstack appcontainer commit |
</ | </ | ||
====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/attic/cloud/recipe/docker.1589301170.txt.gz · Last modified: 2020/05/12 11:32 by chudler