title: how to install libsnappy.so.1?
body: <p>Im working with docker to host a local database for a website.
  When running my executable for my local database it gives an error about libsnappy.so.1</p>
  
  <p>Ive tried running <code>apt-get install -y snapd</code>.</p>
  
  <p>Here is the code I am running.</p>
  
  <pre><code>sudo docker build --tag=tx1 . 
  </code></pre>
  
  <p>When running the below</p>
  
  <pre><code>sudo docker run -t -i -p 8080:80 tx1
  </code></pre>
  
  <p>It gives the error</p>
  
  <pre><code>./next9: error while loading shared libraries: libsnappy.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>here is my docker file if anyone wants to see</p>
  
  <pre><code>#Download base image ubuntu 18.04
  FROM ubuntu:18.04
  # ENTRYPOINT ["/docker/tx1"]
  
  # Update Ubuntu Software repository
  RUN apt-get update; apt-get install -y snapd; ldconfig
  #  apt-get install -y gnome-terminal 
  WORKDIR /
  
  COPY . /
  EXPOSE 80
  CMD  chmod 777 build; ./build
  </code></pre>
  
  <p>build</p>
  
  <pre><code>#!/bin/bash
  ./next9 &amp; ./main
  </code></pre>