AMAZON ECS(3)Docker Compose
1 Prepare Docker Compose
Follow the Blog I used to have
http://sillycat.iteye.com/blog/2227400
> sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
> sudo docker-compose --version
docker-compose version: 1.3.1
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
I just check and find out I need to use the latest version
> curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
> sudo docker-compose --version
docker-compose version 1.5.2, build 7240ff3
The configuration file will be easily as follow:
> cat docker-compose.yml
xxxxx-play:
image: sillycat:xxxxx-play
ports:
- "8003:8003"
Command start the service
> sudo docker-compose up
It runs great.
References:
http://sillycat.iteye.com/blog/2227400
AMAZON ECS(3)Docker Compose
猜你喜欢
转载自sillycat.iteye.com/blog/2263058
今日推荐
周排行