title: why docker image with elasticsearch status restarting always?
body: <p>unbuntu 16.04, ram 1gb, on aws instance</p>
  
  <p>I had to run old instance of elasticsearch so I wanted use a docker image of elasticsearch 5.3.3 version. by seeing the stackoverflow multiple links with same title, i have modified my installation of docker image based elasticsearch as below</p>
  
  <pre><code>sudo docker run -p 9200:9200 -p 9300:9300 -d -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" -e "xpack.security.enabled=false" --restart=unless-stopped --name careerassistant-elastic  docker.elastic.co/elasticsearch/elasticsearch:5.3.3
  </code></pre>
  
  <p>the installation is finished and have problem with accessing the elasticsearch, though I had mutliple modifications as above command, I couldnt resolve the issue. when on</p>
  
  <pre><code>sudo docker ps
  </code></pre>
  
  <p>the status is still --> restarting(1) 48 seconds ago</p>
  
  <p>when i was checking the log of the docker i couldnt understand anything as i am new to docker and its utilization</p>
  
  <pre><code>&gt; docker logs --tail 50 --follow --timestamps careerassistant-elastic
  </code></pre>
  
  <p>i got the following output</p>
  
  <pre><code>2020-05-04T09:36:00.552415247Z CmaTotal:              0 kB
  2020-05-04T09:36:00.552418314Z CmaFree:               0 kB
  2020-05-04T09:36:00.552421364Z HugePages_Total:       0
  2020-05-04T09:36:00.552424343Z HugePages_Free:        0
  2020-05-04T09:36:00.552427401Z HugePages_Rsvd:        0
  2020-05-04T09:36:00.552430358Z HugePages_Surp:        0
  2020-05-04T09:36:00.552433336Z Hugepagesize:       2048 kB
  2020-05-04T09:36:00.552436334Z DirectMap4k:       67584 kB
  2020-05-04T09:36:00.552439415Z DirectMap2M:      980992 kB
  2020-05-04T09:36:00.552442390Z 
  2020-05-04T09:36:00.552445460Z 
  2020-05-04T09:36:00.552448777Z CPU:total 1 (initial active 1) (1 cores per cpu, 1 threads per core) family 6 model 63 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, lzcnt, tsc, bmi1, bmi2
  2020-05-04T09:36:00.552452312Z 
  2020-05-04T09:36:00.552455227Z /proc/cpuinfo:
  2020-05-04T09:36:00.552458471Z processor    : 0
  2020-05-04T09:36:00.552461695Z vendor_id    : GenuineIntel
  2020-05-04T09:36:00.552464872Z cpu family   : 6
  2020-05-04T09:36:00.552467992Z model        : 63
  2020-05-04T09:36:00.552471311Z model name   : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
  2020-05-04T09:36:00.552474616Z stepping : 2
  2020-05-04T09:36:00.552477715Z microcode    : 0x43
  2020-05-04T09:36:00.552480781Z cpu MHz      : 2400.040
  2020-05-04T09:36:00.552483934Z cache size   : 30720 KB
  2020-05-04T09:36:00.552486978Z physical id  : 0
  2020-05-04T09:36:00.552490023Z siblings : 1
  2020-05-04T09:36:00.552493103Z core id      : 0
  2020-05-04T09:36:00.552496146Z cpu cores    : 1
  2020-05-04T09:36:00.552511390Z apicid       : 0
  2020-05-04T09:36:00.552515457Z initial apicid   : 0
  2020-05-04T09:36:00.552518523Z fpu      : yes
  2020-05-04T09:36:00.552521677Z fpu_exception    : yes
  2020-05-04T09:36:00.552524702Z cpuid level  : 13
  2020-05-04T09:36:00.552527802Z wp       : yes
  2020-05-04T09:36:00.552531691Z flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single kaiser fsgsbase bmi1 avx2 smep bmi2 erms invpcid xsaveopt
  2020-05-04T09:36:00.552535638Z bugs     : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
  2020-05-04T09:36:00.552538954Z bogomips : 4800.08
  2020-05-04T09:36:00.552545171Z clflush size : 64
  2020-05-04T09:36:00.552548419Z cache_alignment  : 64
  2020-05-04T09:36:00.552551514Z address sizes    : 46 bits physical, 48 bits virtual
  2020-05-04T09:36:00.552554916Z power management:
  2020-05-04T09:36:00.552558030Z 
  2020-05-04T09:36:00.552561090Z 
  2020-05-04T09:36:00.552564141Z 
  2020-05-04T09:36:00.552567135Z Memory: 4k page, physical 1014424k(76792k free), swap 0k(0k free)
  2020-05-04T09:36:00.552570458Z 
  2020-05-04T09:36:00.552573441Z vm_info: OpenJDK 64-Bit Server VM (25.131-b11) for linux-amd64 JRE (1.8.0_131-b11), built on Jun 16 2017 13:51:29 by "buildozer" with gcc 6.3.0
  2020-05-04T09:36:00.552576947Z 
  2020-05-04T09:36:00.552579894Z time: Mon May  4 09:36:00 2020
  2020-05-04T09:36:00.552582956Z elapsed time: 0 seconds (0d 0h 0m 0s)
  2020-05-04T09:36:00.552586052Z
  </code></pre>
  
  <p>can someone help me out to figure what could be the problem for docker status to be restarting ?</p>