-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update doc to add docker installation
- Loading branch information
1 parent
8f13f71
commit ded0d7e
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Docker installation | ||
|
||
To run Airlines in Docker, you need to install Docker and check that the version is greater than 1.2. | ||
|
||
To verify your version, run: | ||
```sh | ||
sudo docker --version | ||
``` | ||
|
||
To upgrade your docker version or to install it, take a look at | ||
[this section](https://docs.docker.com/installation/ubuntulinux/#docker-maintained-package-installation) | ||
of the docker installation guide. | ||
|
||
Once you are done with this, you can build your image and run your container: | ||
```sh | ||
sudo docker build -t airlines . | ||
sudo docker run airlines | ||
sudo docker inspect $(sudo docker ps | grep airlines | awk '{ print $(NF) }') | grep IPAddress | ||
``` | ||
|
||
It will output the IP address of your container. Now, you just have to open a browser, paste the address | ||
and choose app.php or app_dev.php. |