~]# cd wordpress-site/Ĭreate docker-compose.yml file with the following content version: '3.0' Wordpress latest f28808014819 7 days ago 406MBĬreate a directory with name “ wordpress-site” ~]# mkdir wordpress-site Mysql latest c73c7527c03a 2 days ago 412MB In the compose file we will define the services for our applications and container images.īefore start creating compose file, let’s first pull WordPress and MySQL container images ~]# docker pull wordpress To deploy docker containers with docker-compose command, first create a directory under that directory create a compose file with name ‘ docker-compose.yml‘ or ‘ docker-compose.yaml‘. ~]# Deploy Containers with Docker Compose tool Verify the Docker version using below command ~]# docker-compose -versionĭocker-compose version 1.15.0, build e12f3b9 In case pip version is below 6.0 then run the below command to upgrade it ~]# pip install -upgrade pip Note: pip version 6.0 or higher is recommended for docker-compose to work smoothly. Login to your docker host and run the beneath commands one after the another ~]# yum install epel-release -y Now let’s jump into the installation steps of docker compose tool. I am assuming here that we have existing docker host up and running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |