/docker-exemples

docker exemples

Primary LanguageRuby

Docker exemples

Some exemples of docker using Dockerfile and Docker compose

Rails exemple

  • Creating a rails image in the folder rails3.2.22.5 execute the following command:

    "docker build -t rails3.2.22.5 ."

    it will create an image named rails3.2.22.5

  • Running a the created image

    docker run rails3.2.22.5

  • Using docker compose to run a rails application in the folder railsApp execute the following command:

    "docker-compose up app"

  • in the host computer open the browser and access http://localhost:3000/users