Skip to main content

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 with RUN:
  1. Add a new secret with key “DOCKER_LOGIN” in the secrets pane (the lock icon to the left)
  2. Make the value for that secret be your docker hub login
  3. Press the “Save” button to save the new secret.
Change your Layerfile and add the following lines after installing Docker:
Layerfile
Full example of Layerfile that installs & runs a docker container, then creates a persistent staging link from it:
Layerfile