Created
February 3, 2014 21:35
-
-
Save smarterclayton/8792897 to your computer and use it in GitHub Desktop.
Docker gear
This file contains hidden or 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
[vagrant@localhost ~]$ curl -X PUT "http://localhost:8080/token/__test__/container?i=2&u=deadbeef&t=pmorie%2fsti-html-app&d=1&r=12" -d '{"ports":[{"external":10102,"internal":8080}]}' | |
Creating gear 12 ... | |
Unit in place 12 ... | |
-- Logs begin at Tue 2013-11-26 08:05:45 UTC. -- | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:13] Unknown section 'Gear'. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:14] Assignment outside of section. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:15] Assignment outside of section. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:16] Assignment outside of section. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:17] Assignment outside of section. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: Starting Gear container 12... | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: Started Gear container 12. | |
Gear 12 is started | |
[vagrant@localhost ~]$ curl http://localhost:10102 | |
<html> | |
<head> | |
<title>Welcome</title> | |
</head> | |
<body> | |
This is a test STI HTML application. | |
</body> | |
</html> | |
[vagrant@localhost ~]$ systemctl status gear-12 | |
gear-12.service - Gear container 12 | |
Loaded: loaded (/var/lib/gears/units/gear-12.service; enabled) | |
Active: active (running) since Mon 2014-02-03 21:34:42 UTC; 18s ago | |
Main PID: 17516 (docker) | |
CGroup: name=systemd:/system/gear-12.service | |
└─17516 /usr/bin/docker run -a stdout -a stderr -p 10102:8080 -rm pmorie/sti-html-app | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:16] Assignment outside of section. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: [/var/lib/gears/units/gear-12.service:17] Assignment outside of section. Ignoring. | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: Starting Gear container 12... | |
Feb 03 21:34:42 localhost.localdomain systemd[1]: Started Gear container 12. | |
Feb 03 21:34:42 localhost.localdomain docker[17516]: + exec /usr/mock/mock_server.rb 0.0.0.0 /usr/mock/source/ | |
Feb 03 21:34:42 localhost.localdomain docker[17516]: [2014-02-03 21:34:42] INFO WEBrick 1.3.1 | |
Feb 03 21:34:42 localhost.localdomain docker[17516]: [2014-02-03 21:34:42] INFO ruby 2.0.0 (2013-11-22) [x86_64-linux] | |
Feb 03 21:34:42 localhost.localdomain docker[17516]: [2014-02-03 21:34:42] INFO WEBrick::HTTPServer#start: pid=1 port=8080 | |
Feb 03 21:34:50 localhost.localdomain docker[17516]: 172.17.42.1 - - [03/Feb/2014:21:34:50 UTC] "GET / HTTP/1.1" 200 117 | |
Feb 03 21:34:50 localhost.localdomain docker[17516]: - -> / | |
[vagrant@localhost ~]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment