cloud:recipe:docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cloud:recipe:docker [2020/05/14 14:48] – [Private Registry Images] chudler | cloud:recipe:docker [2020/11/18 16:28] (current) – [Modifying and Saving a Container] chudler | ||
---|---|---|---|
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:// |
- | < | + | < |
- | Access | + | 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 | ||
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 51: | 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 ${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