doc / dock are similar-sounding terms with different meanings (referred to as homophones). To better understand the differences, see below for definitions, pronunciation guides, and example sentences using each term. 👇
doc: NA
dock: (noun) an enclosure in a court of law where the defendant sits during the trial. (noun) any of certain coarse weedy plants with long taproots, sometimes used as table greens or in folk medicine. (noun) a platform where trucks or trains can be loaded or unloaded. (noun) landing in a harbor next to a pier where ships are loaded and unloaded or repaired; may have gates to let water in or out. (noun) the solid bony part of the tail of an animal as distinguished from the hair. (verb) come into dock. (verb) deprive someone of benefits, as a penalty. (verb) deduct from someone's wages. (verb) remove or shorten the tail of an animal. (verb) maneuver into a dock.
doc: d·AA·k
dock: d·AA·k
(Examples are Wikipedia snippets under the CC ShareAlike 3.0 license. Definitions drawn from WordNet.)