It is suggested to keep checking the output and The output of the above command will look as shown below and will take sometime to spin a new EC2 instance. Above command will launch a new pem key as well. Create AWS based docker machine using following command,ĭocker-machine -D create –driver amazonec2 –amazonec2-access-key $AWS_ACCESS_KEY_ID –amazonec2-secret-key $AWS_SECRET_ACCESS_KEY –amazonec2-vpc-id vpc-b8601add –amazonec2-subnet-id subnet-8ef72da5 –amazonec2-zone c dockerįor the sake of simplicity, AWS access key and secret key are sourced in my linux environment, however, they can also be explicitly declared in the above command. To add more to its benefits, this host and similar kind of other hosts from different sources (either cloud or virtual hypervisors) can be managed from a single workstation. Generate access key and secret key against your AWS user.”docker-machine create” command is used to spin a new docker enabled EC2 instance that can be directly used to create docker containers. To create a docker machine on AWS cloud, an AWS acount is needed. To check, if it is working, run below command, Mv ~/Downloads/docker-machine_linux-amd64 /usr/local/bin/docker-machineĬhmod +x /usr/local/bin/docker-machine The project is still in its beta phase and this blog will try to have a close look into the project and explore some of its benefits that can be leveraged by AWS professionals.ĭownload docker-machine from here as per your OS requirement and provision execute permissions on the downloaded file and move it to the location by default set in PATH environment using following command, Docker machine eliminates the need for installation and configuration of Docker at different nodes to start using docker containers. Using docker-machine, we can provision docker instance at virtualbox, AWS, azure cloud, digital ocean, rackspace, openstack etc and even at our data center. Using this tool, different docker server or hosts can be managed from a single workstation, be them in local LAN or on public or private cloud. Docker machine is a new advancement of Docker team to manage docker servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |