<commit_before># Docker Issues

You will find here some of the common issues we had with docker.

# LINUX
### UBUNTU
Docker can complain of not having `permissions`. So the first reflex is to run everything as `sudo`.  
But the real reason is that you need to be in the docker group in order to run docker commands.

To achieve that, just run
- `$ sudo gpasswd -a ${USER} docker`
- logout and login

# MAC

### repository must be in Users folder

The different scripts here will need to share code with the different containers. On Windows and Mac, the sharing is between the container and the virtual machine. The virtual machine is defined to share your home folder (/c/Users/ for windows or /Users for mac). If your git clone folder is a children folder of your home user, it's fine. Else you need to open VirtualBox and share that specific folder.

### no space left on device
```
Error pulling image (0.0) from docker.io/reactivetrader/servers, 
endpoint: https://registry-1.docker.io/v1/, 
Untar re-exec error: 
exit status 1: 
output: 
write /usr/share/mime/packages/freedesktop.org.xml: 
no space left on device
```

try to stop and restart the docker virtual machine:
```
docker-machine stop default
docker-machine start default
```

# WINDOWS

### repository must be in Users folder

The different scripts here will need to share code with the different containers. On Windows and Mac, the sharing is between the container and the virtual machine. The virtual machine is defined to share your home folder (/c/Users/ for windows or /Users for mac). If your git clone folder is a children folder of your home user, it's fine. Else you need to open VirtualBox and share that specific folder.
<commit_msg>Add some comment on the no-space-left issue<commit_after># Docker Issues

You will find here some of the common issues we had with docker.

# LINUX
### UBUNTU
Docker can complain of not having `permissions`. So the first reflex is to run everything as `sudo`.  
But the real reason is that you need to be in the docker group in order to run docker commands.

To achieve that, just run
- `$ sudo gpasswd -a ${USER} docker`
- logout and login

# MAC

### repository must be in Users folder

The different scripts here will need to share code with the different containers. On Windows and Mac, the sharing is between the container and the virtual machine. The virtual machine is defined to share your home folder (/c/Users/ for windows or /Users for mac). If your git clone folder is a children folder of your home user, it's fine. Else you need to open VirtualBox and share that specific folder.

### no space left on device
```
Error pulling image (0.0) from docker.io/reactivetrader/servers, 
endpoint: https://registry-1.docker.io/v1/, 
Untar re-exec error: 
exit status 1: 
output: 
write /usr/share/mime/packages/freedesktop.org.xml: 
no space left on device
```

try to stop and restart the docker virtual machine:
```bash
docker-machine stop default
docker-machine start default
```
Then close the `Docker Quick Start Terminal` and open a new once.

If the issue persist, try to remove the virtual machine and generate a new one:  
- open virtualbox Gui
- right click on the `default` machine and remove it with all its files
- close virtualbox Gui
- open a new docker Quick Start Terminal
- wait for the new VirtualMachine to be generated

# WINDOWS

### repository must be in Users folder

The different scripts here will need to share code with the different containers. On Windows and Mac, the sharing is between the container and the virtual machine. The virtual machine is defined to share your home folder (/c/Users/ for windows or /Users for mac). If your git clone folder is a children folder of your home user, it's fine. Else you need to open VirtualBox and share that specific folder.

{'fraction_non_alphanumeric': 0.06084447941253606, 'fraction_numerical': 0.0026226068712300026, 'mean_word_length': 3.9532467532467535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6171656', 'n_tokens_mistral': 1043, 'n_tokens_neox': 981, 'n_words': 596}