Line 122: |
Line 122: |
| | | |
| Plenty | | Plenty |
| + | |
| + | ===Challenges=== |
| + | * How to interact with localhost PAM or LDAP from within a container? |
| + | |
| + | I think that you can access localhost services by adding: |
| + | |
| + | --net="host" to docker run |
| + | |
| + | This means any services on the docker container are equally valid 'localhost' services accessible from the server itself so you need to ensure the server is properly firewalled. See Issues below. |
| + | |
| + | * Many more... |
| | | |
| | | |
Line 217: |
Line 228: |
| * Start/restart and stop syntax of the application | | * Start/restart and stop syntax of the application |
| * Configure cron | | * Configure cron |
− |
| |
− |
| |
− |
| |
| | | |
| ==General old notes== | | ==General old notes== |
Line 230: |
Line 238: |
| You will be flooded with available images from the Docker hub. This is because everyone can have a free account on Docker hub and create one repository for him/herself. We limit our testing to the official Centos repo. With all the other images, you are on your own and usage is at your own risk. | | You will be flooded with available images from the Docker hub. This is because everyone can have a free account on Docker hub and create one repository for him/herself. We limit our testing to the official Centos repo. With all the other images, you are on your own and usage is at your own risk. |
| | | |
− | | + | ==Downloading a docker image=== |
− | ===Downloading a docker image===
| |
| To download the centos7 image to your local server, issue the following command as root: | | To download the centos7 image to your local server, issue the following command as root: |
| docker pull centos:centos7 | | docker pull centos:centos7 |
Line 303: |
Line 310: |
| Or you could add directly from the command line | | Or you could add directly from the command line |
| docker run -i -t -dns 208.67.220.220 -dns 208.67.220.222 sme9_real:6.5 /bin/bash | | docker run -i -t -dns 208.67.220.220 -dns 208.67.220.222 sme9_real:6.5 /bin/bash |
− |
| |
− | ==Challenges==
| |
− | * How to interact with localhost PAM or LDAP from within a container?
| |
− |
| |
− | I think that you can access localhost services by adding:
| |
− |
| |
− | --net="host" to docker run
| |
− |
| |
− | This means any services on the docker container are equally valid 'localhost' services accessible from the server itself so you need to ensure the server is properly firewalled. See Issues below.
| |
− |
| |
− | * Many more...
| |
− |
| |
| | | |
| ===Docker Compose=== | | ===Docker Compose=== |
Line 338: |
Line 333: |
| If you don't use host networking, you use the internal IP address set with docker, but this address is unknown as a local network to SME and it will block any queries emanating from the container. I am looking at this with the contrib. | | If you don't use host networking, you use the internal IP address set with docker, but this address is unknown as a local network to SME and it will block any queries emanating from the container. I am looking at this with the contrib. |
| | | |
− | ==More Old Notes===
| |
− |
| |
− | The following are old notes.
| |
− |
| |
− | https://docs.docker.com/engine/install/centos/
| |
− |
| |
− | Don't use the extras repo to install
| |
− |
| |
− | https://download.docker.com/linux/centos/docker-ce.repo
| |
| | | |
| ===Repo setup=== | | ===Repo setup=== |