Logging in to Docker
Webapp.io creates entire VMs as easily as Dockerfiles, so it’s common for our users to use Docker or docker-compose within webapp.io. Docker hub rate limits requests made by unauthenticated users, so it’s imperative to create a docker hub account and log in to it to avoid failing tests. The simplest way is to combine SECRET ENV withRUN
:
- Add a new secret with key “DOCKER_LOGIN” in the secrets pane (the lock icon to the left)
- Make the value for that secret be your docker hub login
- Press the “Save” button to save the new secret.
Layerfile
Layerfile