I'm trying to use the docker and getting the following error: 'docker: Error response from daemon: Failed to initialize logging driver: NoCredentialProviders: no valid providers in chain. Afinstaller tuneskit for mac. According to, I need to set the AWSSHAREDCREDENTIALSFILE environment variable for the docker daemon, but I'm not sure how to do that when using Docker for Mac.
The command I'm using to start the container is: docker run -d -log-driver=awslogs -log-opt awslogs-region=us-east-1 -log-opt awslogs-group=my-log-group my-image Version information:. Docker for Mac 1.12.1-rc1-beta23 build 11375. OS X El Capitan 10.11.6. But I'm not sure how to do that when using Docker for Mac.
With, you would need to modify /var/lib/boot2docker/profile in order to add this variable. It does persists across the TinyCore-based VM reboot, and the docker daemon would then take it into account. With the new, the idea should be the same.
/var/lib/boot2docker/profile does exist as well, as shown. The official points to: -config-file=/etc/docker/daemon.json Daemon configuration file So try and modify this file. By default, the comments mention: /Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/etc/docker/daemon.json. Using information taken from this answer: You can connect to the VM layer that runs the docker daemon using: screen /Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty And you can modify /etc/docker/daemon.json to add the needed variables there.
Once you make your changes,you can just run: service docker restart from within the moby terminal to restart the docker daemon. Do notice that if you restart docker from your mac, the changes will not persist.
On a side note, if you encounter a login screen when connecting with the screen command, try username: root to access the system.