Retired Navy Rear Adm. Daniel V. Gallery, 75, a pilot, aircraft carrier commander and author of eight books on Navy life, died Sunday at the Bethesda Navy Medical Center after a long illness.

His dual career as a Navy officer and author began in World War II. In 1944, he was commanding officer of the carrier U.S.S. Guadalcanal, which captured German submarine off the coast of Cape Blanco, French West Africa.

A year later, he wrote an article describing that action, which was published in the Saturday Evening Post. He later contributed articles and short stories regularly to the Saturday Evening Post, Reader's Digest, Colliers, Esquire and other publications.

Born in Chicago, Adm. Gallery graduated in 1920 with the class of 1921 from Annapolis. While a midshipman, he was a member of the U.S. Olympic wrestling team that participated in the 1920 games at Antwerp, Belgium.

After seeing duty at sea, Adm. Gallery trained as a pilot at the Naval Air Station in Pensacola, Fla., in 1927.

At the outbreak of World War II, he was commanding officer of the U.S. Navy Fleet Air Base in Iceland.

After commanding the U.S.S. Guadalcanal in the Atlantic, he was sent to the Pacific in 1945 as commander of the carrier U.S.S. Hancock, and was present at the Japanese surrender ceremonies in Tokyo Bay.

Adm. Gallery served here as assistant chief of naval operations for guided missiles during 1946-49.

During the Korean conflict, he was commander of Carrier Division Six, serving on board the U.S.S. Coral Sea in the Pacific.

From 1952 to 1955, he commanded the Naval Air Reserve Training Command, Naval Air Station at Glenview, Ill., and in 1954 also was commandant of the 9th Naval District at Great Lakes, Ill.

Adm. Gallery then was commander of the Caribbean Sea Frontier, commandant of the 10th Naval District, commandant of the 15th Naval District and commander of the Antilles Defense Command. He served briefly at the Bureau of Personnel here before retiring in 1960.

Adm. Gallery, who had put in more than 6,000 hours of flying time in all types of Navy aircraft, held a number of decorations, including the Distinguished Service Medal and the Bronze Star.

His books, which often gave a humorous picture of Navy life, included "Twenty Million Tons Under the Sea," "Now Hear This," "Clear the Decks," "8 Bells," "Stand By to Start Engines" and "The Pueblo Incident."

He is survived by his wife, Vera Lee Dunn Gallery, of the home in Oakton, Va.; two sons, James J., of Clifton, Va., and Daniel V. III, of Arlington; a daughter, Constance Moyer, of San Diego; two brothers, retired Navy Rear Adm. W.O. Gallery and the Rev. J.J. Gallery, and a sister, Margaret Rose, all of Chicago, and two grandchildren.

The family suggests that expressions of sympathy be in the form of contributions to the American Cancer Society.