Docker Compose's exec command allocates a TTY by default, so you need to use the --no-TTY flag if you want to pass, for example, a file containing SQL queries to a container running MariaDB.

Read more

By default, at least in Ubuntu, Docker container logs will grow indefinitely (in my case up to 412 GB, thus filling up my hard drive).

To prevent this, you can create a /etc/docker/daemon.json file with the following configuration:

Read more

A quick and easy way to test if Docker is running correctly is to run this command:

$ docker run -p 80:80 nginx

Read more

Docker Toolbox (a "Legacy" version which is the only Docker you can use if you have Windows 10 Home and not Professional) needs an environment variable set so that docker-compose can adapt paths to Unix style, to be used in the volumes property in a docker-compose.yml file.

Read more

Go relies on the operating system for timezone data, so when you do time.LoadLocation("America/Guayaquil"), it runs code that's different in different OSes. If you use a Docker container to run your code, it's possible to include this data in the form of a .zip file.

Read more
Subscribe to Docker
Mastodon Mastodon