Skip to content

Instantly share code, notes, and snippets.

View handakumbura's full-sized avatar

Dumidu Handakumbura handakumbura

  • Colombo
View GitHub Profile
@handakumbura
handakumbura / kt_articleone_11
Created August 19, 2017 09:57
kt_articleone_11
docker container stop d1ad06cfbc91
docker container ls -la
@handakumbura
handakumbura / kt_articleone_10
Created August 19, 2017 09:52
kt_articleone_10
docker container exec -it d1ad06cfbc91 bash
echo “life inside a container” > file1
@handakumbura
handakumbura / kt_articleone_9.sh
Created August 19, 2017 09:47
kt_articleone_9
Kill -18 3163
@handakumbura
handakumbura / kt_articleone_8
Created August 19, 2017 09:46
kt_articleone_8
hi there.. I’m a process
hi there.. I’m a process
hi there.. I’m a process
[1]+ Stopped bash processtestscript.sh
@handakumbura
handakumbura / kt_articleone_7.sh
Created August 19, 2017 09:42
kt_articleone_7
Kill -19 3163
@handakumbura
handakumbura / kt_articleone_6.sh
Last active August 19, 2017 09:21
kt_articleone_6.sh
UID PID PPID C STIME TTY TIME CMD
dumiduh 3163 3087 0 16:56 pts/7 00:00:00 bash processtestscript.sh
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d1ad06cfbc91 tomcat:8.0 "catalina.sh run" 24 seconds ago Up 21 seconds 8080/tcp happy_banach
@handakumbura
handakumbura / kt_articleone_5.sh
Created August 19, 2017 09:13
kt_articleone_5
ps -ef | head -n 1 ; ps -ef | grep processtestscript.sh | head -n 1
docker container ls -l
@handakumbura
handakumbura / kt_articleone_4
Created August 19, 2017 09:09
kt_articleone_4
Unable to find image 'tomcat:8.0' locally
8.0: Pulling from library/tomcat
ad74af05f5a2: Pull complete
2b032b8bbe8b: Pull complete
99a5213ead46: Pull complete
7de34ca31efd: Pull complete
9b22e57d98bb: Pull complete
12cd7a66c3fd: Pull complete
880bb942de44: Pull complete
6ada99602995: Pull complete
@handakumbura
handakumbura / kt_articleone_3
Created August 19, 2017 09:04
kt_articleone_3
docker container run tomcat:8.0
@handakumbura
handakumbura / kt_article_one_2.txt
Created August 19, 2017 08:56
kt_article_one_2
hi there.. I’m a process
hi there.. I’m a process
hi there.. I’m a process