Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download and Install a compatible version of docker from https://www.docker.com/
  2. Install the OpenStack command-line tools.
  3. Download an openrc file.
    1. Set the OS_TENANT_ID and OS_TENANT_NAME to the same values as OS_PROJECT_ID and OS_PROJECT_NAME
    2. Add export OS_DOMAIN_ID=default

Create a Security Group

Log in to the RAC Dashboard. Then, either create a new security group or add new values to the default security group to allow port 80and port 2376:

Image RemovedImage Added

Info

Port 80 used by HTTP for our app

Port 2376 is used by docker application

...

And you should see output similar to the following:


Image RemovedImage Added


After the host is provisioned , check the server environment with the following command:

Code Block
$ docker-machine env RAC


Image RemovedImage Added


Then run:

Code Block
$ eval $(docker-machine env RAC)

...

Code Block
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>First APP</title>
</head>
<body>
    <h1>This is aan imageapp container</h1>
</body>
</html>

...

Code Block
$ docker images


Image RemovedImage Added

Deploying containers to Docker host remotely

...

Verify the container is running with the following command:


Code Block
$ docker ps -a


Image Added Image Removed-a 


Type in the IP address of your instance (either a Floating IP address or your IPv6 address) in your web browser to see your container running:

Image RemovedImage Added


You can also log in to your docker host directly by running:

...