Run command on host after docker container is run


As described in this blog I would like to be able to log into my EC2 instance on AWS and have the ec2-user be a member of the docker group.

After my container is run on the host, how can I run the command below on the host during my CircleCI build?

sudo gpasswd -a ec2-user docker


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.