According to police, the incident occurred early Monday morning after a garbage truck picked up trash behind a KFC on the 8200 block of Bandera Road.
The man had been sleeping in the dumpster and was picked up along with the garbage. Police said the driver of the truck pulled over when he heard screaming and discovered the man trapped in the back of the truck.
The man was taken to University Hospital for treatment, according to KSAT.
Stay on top of San Antonio news and views. Sign up for our Weekly Headlines Newsletter.