{"action":"created","issue":{"url":"https://api.github.com/repos/bpeng/tickets/issues/9","repository_url":"https://api.github.com/repos/bpeng/tickets","labels_url":"https://api.github.com/repos/bpeng/tickets/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/bpeng/tickets/issues/9/comments","events_url":"https://api.github.com/repos/bpeng/tickets/issues/9/events","html_url":"https://github.com/bpeng/tickets/issues/9","id":178737366,"number":9,"title":"Docker","user":{"login":"bpeng","id":1020745,"avatar_url":"https://avatars2.githubusercontent.com/u/1020745?v=3","gravatar_id":"","url":"https://api.github.com/users/bpeng","html_url":"https://github.com/bpeng","followers_url":"https://api.github.com/users/bpeng/followers","following_url":"https://api.github.com/users/bpeng/following{/other_user}","gists_url":"https://api.github.com/users/bpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/bpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpeng/subscriptions","organizations_url":"https://api.github.com/users/bpeng/orgs","repos_url":"https://api.github.com/users/bpeng/repos","events_url":"https://api.github.com/users/bpeng/events{/privacy}","received_events_url":"https://api.github.com/users/bpeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-22T22:30:58Z","updated_at":"2017-03-14T00:00:19Z","closed_at":null,"body":"```\n=== install/start docker === \n 1003  sudo yum install docker-io\n      sudo systemctl start docker.service\n 1021  sudo systemctl status docker.service\n\n 1023   sudo docker run busybox echo hello world\n=== run image container ===\n 1027  sudo docker images\n\n 1028  sudo docker run busybox echo 'hello'\n 1029  time  sudo docker run busybox echo hello world\n 1030  sudo docker run busybox ping google.com\n 1031  sudo docker run -it ubuntu /bin/bash\n\n 1035  sudo docker run -p 8000:80 atbacker/nginx-example\n 1036  sudo docker run -p 8000:80 atbaker/nginx-example\n 1037  sudo docker ps -a\n 1039  sudo docker ps -a\n\n 1040  time  sudo docker run docker.service\n\n 1045  sudo docker ps -a\n\n 1050  sudo systemctl status docker.service\n\n 1052  sudo docker run -it ubuntu /bin/bash\n\n 1056  sudo docker rm 88e617a00e73\n 1057  sudo docker run -p 8000:80 atbaker/nginx-example\n 1059  sudo docker run -d -p  8000:80 atbaker/nginx-example\n 1060  sudo docker ps\n 1061  sudo docker ps -a\n 1063  sudo docker stop a67fb408f218\n 1003  sudo yum install docker-io\n 1004   sudo docker run busybox echo hello world\n 1005  docker start\n 1006  boot2docker start\n 1007   sudo docker run busybox echo hello world\n 1008  docker images\n 1009  docker version\n 1010  FATA[0000] Get http:///var/run/docker.sock/v1.16/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?\n 1011  boot2docker shellinit\n 1012  $(boot2docker shellinit)\n 1013  docker\n 1015   sudo docker run busybox echo hello world\n 1016  sudo systemctl start docker.service\n 1017   sudo docker run busybox echo hello world\n 1020   sudo docker run busybox echo hello world\n 1021  sudo systemctl status docker.service\n 1022  docker images\n 1023   sudo docker run busybox echo hello world\n 1024  docker\n 1025  docker image\n 1026  docker images\n 1027  sudo docker images\n 1028  sudo docker run busybox echo 'hello'\n 1029  time  sudo docker run busybox echo hello world\n 1030  sudo docker run busybox ping google.com\n 1031  sudo docker run -it ubuntu /bin/bash\n 1032  sudo docker run -it busybox /bin/sh \n 1034  sudo docker run -it busybox /bin/sh \n 1035  sudo docker run -p 8000:80 atbacker/nginx-example\n 1036  sudo docker run -p 8000:80 atbaker/nginx-example\n 1037  sudo docker ps -a\n 1039  sudo docker ps -a\n 1040  time  sudo docker run docker.service\n 1041   sudo docker run docker.service\n 1042   sudo docker run 60c976162915\n 1045  sudo docker ps -a\n 1046  sysctl status docker\n 1050  sudo systemctl status docker.service\n 1051  docker\n 1052  sudo docker run -it ubuntu /bin/bash\n 1053  sudo docker run -p 8000:80 atbaker/nginx-example\n 1054  sudo docker images\n 1055  sudo docker images -a\n 1056  sudo docker rm 88e617a00e73\n 1057  sudo docker run -p 8000:80 atbaker/nginx-example\n 1058  sudo docker run -p -d  8000:80 atbaker/nginx-example\n 1059  sudo docker run -d -p  8000:80 atbaker/nginx-example\n 1060  sudo docker ps\n 1061  sudo docker ps -a\n 1062  sudo docker ps\n 1063  sudo docker stop a67fb408f218\n 1064  sudo docker ps\n 1065  sudo docker rm  a67fb408f218\n 1066  sudo docker ps\n 1067  sudo docker ps -a\n 1068  sudo docker rm  bc29dc52455a\n 1069  sudo docker rm  09e79657d82c\n 1070  sudo docker rm  93f712a5cd5a\n 1071  sudo docker ps -a\n 1072  sudo docker run -p -d --name webserver  8000:80 atbaker/nginx-example\n 1073  sudo docker run -p --name webserver  8000:80 atbaker/nginx-example\n 1074  sudo docker run -p   8000:80 --name webserver atbaker/nginx-example\n\n 1064  sudo docker ps\n 1065  sudo docker rm  a67fb408f218\n 1066  sudo docker ps\n 1067  sudo docker ps -a\n\n=== stop/start/remove containers====\n 1074  sudo docker run -d -p   8000:80 --name webserver atbaker/nginx-example\n\n1043   sudo docker stop webserver\n1043   sudo docker start webserver\n1043   sudo docker rm webserver\n\n 1003  sudo docker logs webserver\n 1005  sudo docker diff  webserver\n 1015  sudo docker inspect  webserver\n 1016  sudo docker cp webserver:/usr/share/nginx/html/index.html .\n 1020  sudo docker inspect \n 1021  sudo docker ps\n 1022  sudo docker ps -aq\n\n--- remove all containers ---\n 1024  sudo docker rm -f $(sudo docker ps -aq)\n 1025  sudo docker ps -aq\n 1026  sudo docker ps -a\n\n sudo docker rmi -f $(sudo docker images -aq)\n\n--- build from docker file ---\n sudo docker build -t nginx-static .\n sudo docker run  -p 8080:80 nginx-static\n (expose 80--on container, 8080 on host)\n sudo docker ps\n sudo docker inspect fe9ee3f0e4d\n (note network settings)\n <code>\n \"NetworkSettings\": {\n        \"Bridge\": \"docker0\",\n        \"Gateway\": \"172.17.42.1\",\n        \"IPAddress\": \"172.17.0.32\",\n        \"IPPrefixLen\": 16,\n        \"MacAddress\": \"02:42:ac:11:00:20\",\n        \"PortMapping\": null,\n        \"Ports\": {\n            \"443/tcp\": null,\n            \"80/tcp\": [\n                {\n                    \"HostIp\": \"0.0.0.0\",\n                    \"HostPort\": \"8080\"\n                }\n            ]\n        }\n    },\n\n  access from http://172.17.42.1:8080/ or http://localhost:8080/\n</code>\n\n\n\n=== geonet ===\nhttps://github.com/GeoNet/geonet/blob/master/README-DB.md\n\n-- remove image\nsudo docker rmi  3e643e0df8dc\n\n-- docker build specify directory for docker file\nsudo docker build -t 'geonet/postgis' ./db/\nsudo docker run --name geonet_postgis -p 5432:5432 -i -d -t geonet/geonet\n\n------ geonet-news-md\nsudo docker build  -t 'geonet-news-md' .\nsudo docker run --name geonet-news-md -p 8080:8080 -i -d -t geonet-news-md\nsudo docker stop/start geonet-news-md\n\n\nsudo docker run --name geonet-fits-web -p 8080:8080 -i -d -t geonet-fits-web\n\n-- find ip address of a running container:\ndocker inspect --format '{{ .NetworkSettings.IPAddress }}' geonet_fit\n\nsudo docker run -e \"FITS_DATABASE_HOST=172.17.0.2\"  -e \"FITS_DATABASE_PASSWORD=test\" -e \"FITS_DATABASE_SSL_MODE=disable\" -e \"FITS_DATABASE_MAX_OPEN_CONNS=30\" -e \"FITS_DATABASE_MAX_IDLE_CONNS=20\" -e \"FITS_WEB_SERVER_PORT=8080\" -e \"FITS_WEB_SERVER_CNAME=localhost\" -e \"FITS_WEB_SERVER_PRODUCTION=false\" -e \"LIBRATO_USER=\" -e \"LIBRATO_KEY=\" -e \"LOGENTRIES_TOKEN=\"  -p 8080:8080 geonet-fits-web\n\n\npsql --host=127.0.0.1  --username=hazard_w hazard -f events.ddl\n\n\n\n\n======\n2016-03-11\nupdate docker\nhttps://docs.docker.com/linux/step_one/\n\nsudo yum remove libdb4-4.8.30-11.fc20.x86_64\nsudo yum remove libertas-usb8388-firmware-20150521-48.git3161bfa4.fc20.noarch\nsudo yum remove libgssglue-0.4-2.fc19.x86_64\nsudo yum remove liblognorm-0.3.7-1.fc20.x86_64\nsudo yum remove libmicrohttpd-0.9.34-2.fc20.x86_64\nsudo yum remove libopenraw-gnome-0.0.9-6.fc20.x86_64\nsudo yum remove libproxy-mozjs-0.4.11-8.fc20.x86_64\nsudo yum remove libreoffice-4.2.8.2-8.fc20.x86_64\nsudo yum remove libreoffice-langpack-en-4.2.8.2-8.fc20.x86_64\nsudo yum remove libreport-newt-2.2.3-3.fc20.x86_64\nsudo yum remove libsane-hpaio-3.14.10-3.fc20.x86_64\nsudo yum remove libytnef-1.5-11.fc20.x86_64\nsudo yum remove libzeitgeist-0.3.18-5.fc20.x86_64\nsudo yum remove pulseaudio-libs-glib2-5.0-25.fc20.i686\n\n\n```\n"},"comment":{"url":"https://api.github.com/repos/bpeng/tickets/issues/comments/286280961","html_url":"https://github.com/bpeng/tickets/issues/9#issuecomment-286280961","issue_url":"https://api.github.com/repos/bpeng/tickets/issues/9","id":286280961,"user":{"login":"bpeng","id":1020745,"avatar_url":"https://avatars2.githubusercontent.com/u/1020745?v=3","gravatar_id":"","url":"https://api.github.com/users/bpeng","html_url":"https://github.com/bpeng","followers_url":"https://api.github.com/users/bpeng/followers","following_url":"https://api.github.com/users/bpeng/following{/other_user}","gists_url":"https://api.github.com/users/bpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/bpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpeng/subscriptions","organizations_url":"https://api.github.com/users/bpeng/orgs","repos_url":"https://api.github.com/users/bpeng/repos","events_url":"https://api.github.com/users/bpeng/events{/privacy}","received_events_url":"https://api.github.com/users/bpeng/received_events","type":"User","site_admin":false},"created_at":"2017-03-14T00:00:19Z","updated_at":"2017-03-14T00:00:19Z","body":"MapServer on docker\r\n```\r\nhttps://github.com/kartoza/docker-mapserver\r\n```"}}
{"actor":{"display_login":"bpeng"}}