 #---------------- Configuration ----------------#

 Make sure that docker is installed and configured correctly, you can do this by typing
 >> docker version
 If it is correctly set up you should see two different versions, one for the client and one for server.

 Docker configuration:
 For ericsson internal users you can use the E2C Guidelines for installing and configuring docker at
 https://eteamspace.internal.ericsson.com/display/PB/Steps+for+Installing+and+Configuring+Docker
 If issues exist, make sure the environment variables mentioned on the site above are set correctly,
 you might also need to check your proxy settings and setting no_proxy if needed.


 #---------------- Installation instructions ----------------#
 1. Installation:
 >> bash DOCKER_MOSHELL.sh -i <path/to/moshellxx.xx.zip>

 2. Run the container and run moshell:
 >> bash DOCKER_MOSHELL.sh -r <moshell_version>
 For example -> >> bash DOCKER_MOSHELL.sh -r 23.0g

 3. Stop container:
 >> bash DOCKER_MOSHELL.sh -s <moshell_version>		
 Note, to change the USER variable from the default one if a container has a different name, use the -u flag, see below.

 4. To change the user variable:
 >> bash DOCKER_MOSHELL.sh -u <user>
 This is handy if you for example already have a running container called "alice_container_moshell23.0f" and want to add your user to this
 running container if your user is different from "alice".
 Example: >> bash DOCKER_MOSHELL.sh -i ~/Desktop/moshell23.0g.zip -r 23.0g -u alice
 This example will install moshell and run it in a container called "alice_container_moshellxx" and also run that installation of moshell.

 Extra:

 5. When starting the container, the script tries to add a user to that container first automatically.
    However, if you only wish to add a user to a container without starting the container, you can use the -a option.
    >> bash DOCKER_MOSHELL.sh -a 23.0f -u alice
    This would add the current user to the container called "alice_container_moshell23.0f" without starting the container afterwards.

 6. There is a docker configuration check in place for users who use the E2C internal guidelines for docker installation,
    if you are sure that your docker is set up correctly and wish to bypass this configuration check you can use the -b flag
    >> bash DOCKER_MOSHELL.sh -i ~/Desktop/moshell23.0g.zip -b 

 For help:
 >> bash DOCKER_MOSHELL.sh -h


#---------------- Other instructions ----------------#

1. To check size of created docker image:
>> docker image ls <image_name>

2. To check stats of currently running docker containers:
>> docker stats

3. To copy files from host to container and container to host:
>> docker cp SRC_PATH container_name:DEST_PATH
>> docker container_name:SRC_PATH DEST_PATH

4. To check running containers:
>> docker ps

5. To check all containers:
>> docker ps -a

6. To stop a running container:
>> docker stop <container_name>
One can find container name from ">>docker ps -a" for example, you can also use container id

7. To delete a stopped container:
>> docker rm <container_name>

8. To restart a stopped container:
>> docker start <container_name>
