def sockets(self):

        info = self._container_info()

        def attach_socket(key):
            if info['Config']['Attach{0}'.format(key.capitalize())]:
                socket = self.client.attach_socket(
                    self.container,
                    {key: 1, 'stream': 1, 'logs': self.logs},
                )
                stream = io.Stream(socket)

                if info['Config']['Tty']:
                    return stream
                else:
                    return io.Demuxer(stream)
            else:
                return None

        return map(attach_socket, ('stdin', 'stdout', 'stderr'))
Read *file_name* and parse PEM objects from it using :func:`parse`.
dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/pty.py/RunOperation.sockets--crossover with--dataset/ETHPy150Open hynek/pem/src/pem/_core.py/parse_file