title: Accessing images built with docker-compose without sudo
body: <p>Without sudo, I can't access images that I build with</p>
  <pre><code>docker-compose build api_development
  </code></pre>
  <p>In Ubuntu 20.04.</p>
  <p>Note that I've already created a docker group, and added my user to it. So for example, the command <code>docker image ls</code> works, and I can see images I created with <code>docker pull</code> or <code>docker build</code>. It's just that I can't see or access the image I created with <code>docker-compose</code>.
  The containers I built with <code>docker-compose</code> are only visible with <code>sudo docker image ls</code></p>
  <p>Here's a sample of my docker-compose file:</p>
  <pre><code>version: '2'
  
  services:
    mongo:
      image: mongo:3.6
      container_name: my_mongo
      restart: always
      networks:
        - post-api
  
    redis:
      image: redis:3.2
      container_name: my_redis
      restart: always
      networks:
        - post-api
  
    api_development:
      container_name: api_development
      image: base-post
      build:
        context: .
        dockerfile: ./docker/Dockerfile.test
      restart: always
      networks:
        - post-api
      environment:
        ENV: &quot;development&quot;
        REDIS_HOST: AAA
        MONGO_HOST: BBB
        GUARD_REDIS_HOST: CCC
      depends_on:
        - mongo
        - redis
      command: &quot;gunicorn main:app --config settings/gunicorn/conf.py&quot;
      ports:
        - 9998:9998
  
  networks:
    post-api:
      driver: bridge
  </code></pre>
  <p>Is there something that I need to add to my docker-compose file? or give some permissions to <code>docker-compose</code> command?</p>